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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top