LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to convert C executable into Assembly Code (https://www.linuxquestions.org/questions/programming-9/how-to-convert-c-executable-into-assembly-code-225776/)

indian 09-02-2004 12:55 PM

how to convert C executable into Assembly Code
 
Hi, I want to convert C executable into Assembly code.Can some one please tell me how to do this.using "cc -S file.c" will only convert c program into assembly code but I want the executable file to convert into assembly code.Thanks in anticipation...

bobwall 09-02-2004 01:21 PM

Do "objdump -d a.out" where a.out is the executable. If you want more interactive dissassembly (i.e. jump and call referencing) get ldasm which is a gui frontend for objdump.

KneeLess 09-02-2004 01:22 PM

Run this command: 'objdump -d file' where file is the executable.
http://www.gnu.org/software/binutils...inutils_4.html

indian 09-02-2004 01:42 PM

Thanks and what is the syntax for "ldasm"?

bulliver 10-04-2004 04:56 PM

Quote:

Thanks and what is the syntax for "ldasm"?
bobwall mentioned that ldasm is just a gui frontend. Start it up and off you go...

For reference however, all good command line apps will give you some usage details by running "appname --help"


All times are GMT -5. The time now is 05:29 AM.