Article View: gnu.gcc.help
Article #41403Re: gcc on AIX: how to get code running on both POWER and PowerPC?
From: Andrew Gierth
Date: Tue, 26 Mar 1996 00:00
Date: Tue, 26 Mar 1996 00:00
26 lines
1860 bytes
1860 bytes
In <Mats.Weber-2603961522580001@mlma21.elca-matrix.ch>, Mats.Weber@elca-matrix.ch (Mats Weber) writes: >>We have a small IBM workstation running AIX 4.1; the script `config.guess' >>which comes with gcc calls it a "powerpc-ibm-aix4.1.4.0". On this machine >>we have gcc version 2.7.2 and it works very well; however, the executables >>produced by it dump core (illegal instruction) a when run on other AIX >>machines. > >I have heard that this feature was not present in GCC 2.7.x, but would be >there in 2.8. You don't need to wait for 2.8. If you built gcc with that target type, then 2.7.2 defaults to -mcpu=601, i.e. it generates PowerPC 601 code. If you compile your programs with -mcpu=common, then they should run on any RS6k with 4.1. You can make that the default with a small mod to the gcc source. (Find the definition of PROCESSOR_DEFAULT; change the value to 0, IIRC). This will (I have heard) be made the default in 2.8. It used to be necessary to rebuild libgcc.a as well; I can't tell you if it is needed with 2.7.2 since our RS6k has just died horribly. -- Andrew (andrewg@microlise.co.uk) [.sig under construction]
Technical Details
Message-ID:
<4j9cfd$q1h@microl4.microlise.UUCP>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4in99a$6km@aiscube.ais-gmbh.de> <Mats.Weber-2603961522580001@mlma21.elca-matrix.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2f7970c7111b212f X-Google-Attributes: gid11318c,public X-Google-Thread: 115614,2f7970c7111b212f X-Google-Attributes: gid115614,public From: andrewg@microlise.co.uk (Andrew Gierth) Subject: Re: gcc on AIX: how to get code running on both POWER and PowerPC? Date: 1996/03/26 Message-ID: <4j9cfd$q1h@microl4.microlise.UUCP> X-Deja-AN: 144213601 x-nntp-posting-host: microl.demon.co.uk references: <4in99a$6km@aiscube.ais-gmbh.de> <Mats.Weber-2603961522580001@mlma21.elca-matrix.ch> organization: Microlise Engineering Ltd. reply-to: andrewg@microlise.co.uk (Andrew Gierth) newsgroups: gnu.gcc.help,comp.unix.aix