backward compatibility

Is there any way to compile on a system running QNX 6.2 such that the
program will execute on a system running QNX 4.24?

Thanks in Advance,

Dave Herold

David Herold <dherold@scisol.com> wrote:

Is there any way to compile on a system running QNX 6.2 such that the
program will execute on a system running QNX 4.24?

No, the executable formats are different. QNX 6 is ELF-based, whereas
QNX 4 isn’t…

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten <nospam88@parse.com> wrote:

David Herold <> dherold@scisol.com> > wrote:
Is there any way to compile on a system running QNX 6.2 such that the
program will execute on a system running QNX 4.24?

No, the executable formats are different. QNX 6 is ELF-based, whereas
QNX 4 isn’t…

Actually, QNX4 in later generations will load both ELF and OMF
executables. But, to my knowledge the tool chain to build
QNX4 executables has never been ported to QNX6.

Somebody (jcmichot) did have gcc for QNX4 – I’m not sure if it used its
own linker or the Watcom linker, if it used its own linker, and
you copied all the QNX4 libraries and headers to a QNX6 system,
and compile the gcc & linker for QNX6, you might be able to
build a QNX4 executable that way. (Dredged up from ancient
memories, I think for the QNX4 gnu tools you might start at
www.teaser.fr/~jcmichot).

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.