Forum : 8051
Original Post
Post Information | Post |
---|---|
December 13, 2007 - 8:01pm
|
When #pragma SRC is used to make a .src. file from a .c file, where should .src. be in the project pane. I presume that it must be below the .c from whence it came so that .c is compiled before .src is assembled. Is this order guaranteed? regards Steven Pruzina |
There is a better way to do that.
Go to the menu Options->Project->RC51->Object and check the box "Compile via assembler". When a build is launched, the C file is translated into .SRC and the .SRC into .OBJ. The only node that is needed in the project tree is the C file. I also recommend that you remove the #pragma SRC directive from your source file to make sure this will work.
Regards,
Lionel
Where I find this check box "Compile via assembler" in Ride7. I upgrade from Ride6 to Ride7 and I need it for compile my project.
Thank you for your early answer.
Regards,
F. Kalensky
I also recommend that you remove the #pragma SRC directive from your source file to make sure this will work.