Convert C/C++ to 8086/88 Assembly
-
27-10-2019 - |
题
Is there any way to convert C/C++ to Assembly not to HEX.
Not like something that gcc or other compiler done(C/C++ --> ASM --> HEX).
Only Convert It to ASM.
Is there any way to do it by gcc,I mean stop compiler when translate C/C++ to ASM?
with special thanks for your attention,and so sorry for my basic question
解决方案
Use the -S
option of gcc, for example:
gcc -S hello.c
This will give you a file hello.s
with assembly instructions.
其他提示
gcc -O2 -S -c foo.c
will leave the generated assembly code on the file foo.s.
不隶属于 StackOverflow