assembly code

Dec 7, 2011 at 7:47pm

Where can I find a compiler that will let me see its assembly code? For my course work, I have to learn to include assembly but its proving harder than ever and my deadline is now less than a week.

Where can I find a compiler that will let me see the assembly code?
Dec 7, 2011 at 7:50pm
You mean the assembly output of the compiler? Why, is there one that does not let you do that?
Dec 7, 2011 at 7:50pm
The GCC will output the assembly using the -S switch

g++ -S someCode.cpp
Dec 7, 2011 at 7:57pm
If you need to learn Assembly in less than a week, forget it.

Otherwise check out inline assembly:
GNU: http://www.codeproject.com/KB/cpp/edujini_inline_asm.aspx
MS: http://msdn.microsoft.com/en-us/library/4ks26t93%28v=VS.71%29.aspx
Topic archived. No new replies allowed.