Article View: gnu.gcc.help
Article #52866Re: Cross-compiling to OS/9?
From: John Clark
Date: Mon, 18 May 1992 19:01
Date: Mon, 18 May 1992 19:01
25 lines
1775 bytes
1775 bytes
In article <1992May16.000540.26308@beaver.cs.washington.edu> wiml@cs.washington.edu (William Lewis) writes: + +OS/9? I want to run the compiler on an HP-UX system, and generate +loadable modules for OS/9 (running on a 68k). Are there any pitfalls The 'as delivered' GNU package does not support 'OS-9'. The reason is that the gcc package outputs files in BSD style a.out format(with some number of variations on that theme) and doesn't directly support accessing program variable via a base register. OS-9's module scheme requires that programs be 'PIC' and use an address register to point to a region of memory, offsets from which correspond to the program variables. There is some features, which I have not investigated yet, in 2.1 which allow for 'PIC' code to be generated but I have not seen anything for the register based variable problem. There is a 'native' port of gcc to OS-9 available on an archive site named, "smilodon.cs.wisc.edu". This generates assembler code which is then fed into the OS-9 native R68 assembler, and subsequent output to the OS-9 linker. -- John Clark jclark@ucsd.edu
Technical Details
Message-ID:
<33121@sdcc12.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!sdcc12!sdcc3!jclarkReferences:
<1992May16.000540.26308@beaver.cs.washington.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,79256712f16ecdf2 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-18 07:32:36 PST Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!sdcc12!sdcc3!jclark From: jclark@sdcc3.ucsd.edu (John Clark) Newsgroups: gnu.gcc.help Subject: Re: Cross-compiling to OS/9? Message-ID: <33121@sdcc12.ucsd.edu> Date: 18 May 92 19:01:35 GMT References: <1992May16.000540.26308@beaver.cs.washington.edu> Sender: news@sdcc12.ucsd.edu Organization: University of California, San Diego Lines: 25 Nntp-Posting-Host: sdcc3.ucsd.edu