C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to obtain assembler code when compiling C++ on Linux environments? Posted by Endomorph on 20 Aug 2004 at 2:24 PM
Hello. I was asked in a scool project to obtain the assembler code generated when compiling C++ code on a unix environment.

I know in fancy IDEs theres usually an option to generate this code, but on the linux computer I have to work with, I am limited to gcc/g++ compilers and editing in vi/pico.

So, does anyone know how can I get the assembler code?

Thank you.
Report
Re: How to obtain assembler code when compiling C++ on Linux environme Posted by Jonathan on 20 Aug 2004 at 3:39 PM
: Hello. I was asked in a scool project to obtain the assembler code generated when compiling C++ code on a unix environment.
:
: I know in fancy IDEs theres usually an option to generate this code, but on the linux computer I have to work with, I am limited to gcc/g++ compilers and editing in vi/pico.
:
: So, does anyone know how can I get the assembler code?
:
Give gcc the -S switch to get it to stop at the assembly stage and generate assembly code instead of going on to assemble.

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.