Could you move from a C code to assembly language?

4

How can I take my code from C to assembler?
Is there any online tool to convert it to "assembly language"?

    
asked by omarvan04 31.05.2017 в 22:39
source

2 answers

4

Try the option -S of gcc . From the help of gcc obtained from gcc --help :

user@hostname:~ $ gcc --help
Usage: gcc [options] file...
Options:
...
-S   Compile only; do not assemble or link

If you prefer the Intel assembly language instead of the AT & T that comes by default (the name of some assembly directives are different from one another), you must add the -masm=intel option to the gcc command :

gcc -S -masm=intel miarchivo.c -o miarchivo.asm
    
answered by 31.05.2017 в 22:50
1

Hello! If you can, it's more, whenever dev, codeblocks or whatever you use, compile the program, pass it to machine language, if they can, it's because someone explained how to do it.

link This page converts code from C++ in assembly , not the main part but all the functions passed at the level under would represent the same as in C !

    
answered by 06.06.2017 в 07:02