This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ compile option question
Halifa Yehezkel-BYH005 writes:
>
> Hello,
>
> I will appreciate if you have any input to the following question:
>
> I would like to compile a C or C++ src file and get the ASM listing after each or couple of C/C++
> lines. g++ with -S option will produce the ASM listing of the src file, but I am looking for something like
> 1 or couple of C lines then their ASM listing and so on...
This question should have gone to gcc-help. However, the right anser
to this question is not generally known. If you are using gas, try:
gcc -g -S hello.c
as -adhls hello.s
Andrew.