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
将生成的汇编代码保留在文件foo.s.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.