This might be a dumb question, but how do I get an assembly output from a compiler. There should be a way to get asm peppered with C++. For reference, I'm using the MinGW compiler OR VS Express OR Visual Studio 2005 OR Netbeans. I've tried all the usual information alleys, including asking profs, but nobody can remember, and then nobody can remember to look it up for me.
Assembly from compiliersAnyone?
Page 1 of 1
3 Replies - 902 Views - Last Post: 05 February 2008 - 11:45 AM
Replies To: Assembly from compiliers
#2
Re: Assembly from compiliers
Posted 05 February 2008 - 11:25 AM
Please elaborate:"Assembly output from compiler"
#3
Re: Assembly from compiliers
Posted 05 February 2008 - 11:35 AM
If you want to take c code, and convert it into assembly. It will give you a file just full of asm.
gcc -S cfile.c
gcc -S cfile.c
#4
Re: Assembly from compiliers
Posted 05 February 2008 - 11:45 AM
hoofinasia, on 4 Feb, 2008 - 09:04 PM, said:
This might be a dumb question, but how do I get an assembly output from a compiler. There should be a way to get asm peppered with C++. For reference, I'm using the MinGW compiler OR VS Express OR Visual Studio 2005 OR Netbeans. I've tried all the usual information alleys, including asking profs, but nobody can remember, and then nobody can remember to look it up for me.
Check the documentation for your compiler. I use a command line Borland compiler on Windows, & I believe the option is -a. The option is different for gcc, & since you are using Visual... well, you'll have to check the documentation.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|