Skip navigation.
Home
The QNX Community Portal

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

How to build C to Assembly in QNX 4.25?

For the old QNX2 and QNX4 RTOS

How to build C to Assembly in QNX 4.25?

Postby sieudot » Tue Aug 02, 2016 3:02 am

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?
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam

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

Postby Tim » Tue Aug 09, 2016 7:15 pm

Tim
Senior Member
 
Posts: 1392
Joined: Wed Mar 10, 2004 12:28 am

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

Postby sieudot » Wed Aug 10, 2016 3:32 am

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.
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam

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

Postby MSchneider » Wed Aug 10, 2016 11:26 am

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...
MSchneider
Active Member
 
Posts: 27
Joined: Wed May 28, 2003 6:19 pm

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

Postby sieudot » Thu Aug 11, 2016 1:57 am

Mr MSchneider,
Thanks for your suggest, I will try it.
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam


Return to QNX2 and QNX4

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests