Skip navigation.
Home
The QNX Community Portal

View topic - How to build C to Assembly in QNX 4.25?

Page 1 of 1

How to build C to Assembly in QNX 4.25?

PostPosted: Tue Aug 02, 2016 3:02 am
by sieudot
Hi EveryOne,

I have some C source files in QNX 4.25. They could be compiled to execuable files successfully.
(with Watcom C compiler 10.6).

But I want to view their intermediate assembly code. What compiler option can I use?

Re: How to build C to Assembly in QNX 4.25?

PostPosted: Tue Aug 09, 2016 7:15 pm
by Tim

Re: How to build C to Assembly in QNX 4.25?

PostPosted: Wed Aug 10, 2016 3:32 am
by sieudot
Tim wrote:http://users.pja.edu.pl/~jms/qnx/help/watcom/compiler-tools/cpopts.html

Tim


Hi Tim,
I have seen these options, but I can't find out the option can be used to compile C file to ASM file.

Re: How to build C to Assembly in QNX 4.25?

PostPosted: Wed Aug 10, 2016 11:26 am
by MSchneider
I have an old manual and it states:
"WATCOM compilers do no produce an assembly language listing directly from a source program. Instead, the WATCOM Disassembler can be used to generate an assembly lanugage listing from the object file generated by the compiler."
The Watcom disassembler is "wdisasm".
ms...

Re: How to build C to Assembly in QNX 4.25?

PostPosted: Thu Aug 11, 2016 1:57 am
by sieudot
Mr MSchneider,
Thanks for your suggest, I will try it.