Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make .s assembly files that have been added to a project build?

0 views
Skip to first unread message

Michael Judd

unread,
Jun 3, 2005, 12:56:02 AM6/3/05
to
Hi all,
I've added a gas style assembly file to a project but I haven't been able to
get it to be included in the build process. Is this possible, or should I
just assemble it separately and add the resultant object file to the
project instead.
Sorry if this is a dumb question.
Cheers!
Mike.

Michael Judd

unread,
Jun 3, 2005, 2:31:37 AM6/3/05
to
I think I'm getting close.
I added a "GNU Assembler" build tool by doing the following...

Tools->Build Tools...->New
Set "GNU C++ Compiler Tools" to enabled
Set "Display Name" to "GNU Assembler"
Set "Description" to "GNU Assembler"
Set "Category" to "Assembler"
Set "Enabled by default" to true
Set "Command Line" to "g++ -c -g2 -O0 -o $(TargetFileName) $(InputFileName)"
Set "Registered File Extensions" to "s"
Set "Target Extensions" and "Clean Extensions" to "o" for both Linux and
Solaris

After doing this the .s files would be assembled into the correct directory
(as .o files), but unfortunately they wouldn't get linked into the
executable. I managed to get them to link in by right clicking on the
target executable in the "Project Content" window, clicking on the "Build
Options Explorer", and then Options->Linker Options, and then adding the
object files manually to "Files to link" option.
Anybody know if I missed something?
Cheers!
Mike.

Michael Judd

unread,
Jun 3, 2005, 2:38:53 AM6/3/05
to
Holy crap, I can actually step through the .s assembly source code file in
the debugger.
"Follow your dreams, You can reach yours goals, I'm living proof, beefcake
BEEFCAKE!!"
0 new messages