From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,94c010248ac333c0,start X-Google-Attributes: gid103376,public From: Greg Baker Subject: Porting GNAT to NetBSD/68k Date: 1996/09/19 Message-ID: <85d8zjw7hc.fsf@walleroo.rp.CSIRO.AU>#1/1 X-Deja-AN: 181519121 sender: usenet@rp.CSIRO.AU (Network news) x-nntp-posting-host: walleroo.rp.csiro.au organization: CSIRO Division of Radiophysics/Australia Telescope National Facility newsgroups: comp.lang.ada Date: 1996-09-19T00:00:00+00:00 List-Id: I'm not quite sure if I'm going to have time to do this real soon, so this might be a slightly academic question. Tell me if this is a sensible plan of attack. 0. Install a more modern GCC on the NetBSD/68k machine so that I'll have a decent RTL back-end. (Currently it's gcc 2.4.5 running under NetBSD1.1 on a macintosh). +----------+ +---------+ |NetBSD/68k| |x86 Linux| +----------+ +---------+ |68k gcc | |x86 gcc | +----------+ +---------+ 1. Build a 68k GCC cross-compiler under x86 Linux (My only non-68k machine). +----------+ +---------+ |NetBSD/68k| |x86 Linux| +----------+ +---------+ |68k gcc | |x86 gcc | +----------+ |68k gcc | +---------+ 2. Install GNAT over the 68k-gcc. (Is this as simple as it sounds?. +----------+ +---------+ |NetBSD/68k| |x86 Linux| +----------+ +---------+ |68k gcc | |x86 gcc | +----------+ |68k gcc | |68k GNAT | +---------+ 3. Take the source to the x86-NetBSD GNAT run-time libraries and compile it with the Linux-hosted 68k-GNAT compiler. +----------+ +---------+ |NetBSD/68k| |x86 Linux| +----------+ +---------+ |68k gcc | |x86 gcc | |BSD rts | |68k gcc | +----------+ |68k GNAT | +---------+ 4. Use the Linux-hosted GNAT to compile GNAT for NetBSD. +----------+ +---------+ |NetBSD/68k| |x86 Linux| +----------+ +---------+ |68k gcc | |x86 gcc | |BSD rts | |68k gcc | |GNAT | |68k GNAT | +----------+ +---------+ 5. Install this GNAT over gcc. 6 (Optionally). Compile the compiler itself to make sure it's capable of it and hasn't suffered bit rot. As far as I can tell, the only tricky part is building the cross compiler. Would it be easier if I hosted it on an x86-NetBSD machine? Is building a GNAT cross compiler difficult? -- Greg Baker - - http://www.matra.com.au/~gregb - - gbaker@matra.com.au - predictions of the future - quantum computers - silly poetry - - the "langue musicale universale" (Solresol) revival project -