Pelles C forum

Pelles C => General discussions => Topic started by: Grincheux on March 21, 2012, 12:44:15 PM

Title: ASM Listing from C compiler
Post by: Grincheux on March 21, 2012, 12:44:15 PM
When compiling a program, which is the option that permits me to have the asm source file (*.lst) ?
Title: Re: ASM Listing from C compiler
Post by: czerny on March 21, 2012, 02:37:25 PM
I would look in the help file under 'Command line tools' and 'POCC compiler'.
Is this not what you are looking for?

czerny
Title: Re: ASM Listing from C compiler
Post by: Grincheux on March 21, 2012, 05:30:32 PM
I already read this help file and did not found any information.
I expected a "/Fl:xxxx.lst", but it seems this option does not exist.
Title: Re: ASM Listing from C compiler
Post by: Bitbeisser on March 21, 2012, 05:58:01 PM
I already read this help file and did not found any information.
I expected a "/Fl:xxxx.lst", but it seems this option does not exist.
Look again, specially paying attention to the /Tx86-asm command line option for POCC as already mentioned...

Ralf
Title: Re: ASM Listing from C compiler
Post by: CommonTater on March 22, 2012, 02:30:11 PM
I already read this help file and did not found any information.
I expected a "/Fl:xxxx.lst", but it seems this option does not exist.

Follow the help path, starting at the main menu...
Help -> Contents -> Contents -> Command line tools -> POCC Compiler -> Command line options -> /T 

 
/Tx86-coffCreates a COFF (Common Object File Format) object file for a X86 processor.
/Tx86-asmCreates an assembly text file for a X86 processor.
/Tarm-coffCreates a COFF (Common Object File Format) object file for a ARM processor.
/Tarm-asmCreates an assembly text file for a ARM processor.
/Tamd64-coffCreates a COFF (Common Object File Format) object file for a X64 processor.
/Tamd64-asmCreates an assembly text file for a X64 processor.

The resulting file is named after your source file... eg.  main.c gets you main.asm