Topic : #pragma SRC and project file build order

Forum : 8051

Original Post
Post Information Post
December 13, 2007 - 8:01pm
Guest

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

Replies
Post Information Post
+1
0
-1
December 14, 2007 - 3:19pm
Guest

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

+1
0
-1
May 9, 2012 - 8:24am
Guest

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

+1
0
-1
December 18, 2013 - 5:57am
Guest

I also recommend that you remove the #pragma SRC directive from your source file to make sure this will work.