object file

Is the format of object file created by Watcom documented somewhere I assume
they are different then the object file generated by gcc (under Linux or
QNX6)

I wondering if it’s possible to convert an gcc (generated under QNX6 or
Linux) object file and convert it to an Watcom object file.

  • Mario

Mario Charest wrote:

Is the format of object file created by Watcom documented somewhere I assume
they are different then the object file generated by gcc (under Linux or
QNX6)

I believe the object format for Watcom is OMF (Intel). Gcc uses ELF for
its object format.

I wondering if it’s possible to convert an gcc (generated under QNX6 or
Linux) object file and convert it to an Watcom object file.

I’m haven’t seen anything around do to that kind of conversion but it
might exist. The calling conventions would all have to agree too, as
gcc doesn’t do register parameter by default on x86 as Watcom does.

You could always disassemble the ELF object and re-assemble it via WASM
(been there, done that).

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>