How can I take my code from C to assembler?
Is there any online tool to convert it to "assembly language"?
How can I take my code from C to assembler?
Is there any online tool to convert it to "assembly language"?
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
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
!