🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41543

gcc on AIX: how to get code running on both POWER and PowerPC?

#41543
From: Arndt Schoenewald
Date: Tue, 19 Mar 1996 00:00
24 lines
1574 bytes
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 assume that gcc generates code using instructions that are specific to
the PowerPC, and the compiler switch `-mcpu=common' should probably be
used to remedy this.  However, since it is easy to forget this switch
(e.g. when compiling small programs without a makefile), I would prefer
to install gcc so that it generates common code by default.

Is there an option to `configure' that I can use, or do I need to modify
the `specs' file? Where are the switches kept that are active by default?
Is there a documentation explaining the `specs' file in more detail?

Thank you
Arndt

--
Arndt Schoenewald (arndt@ais-gmbh.de)
Ostenhellweg 31, 44135 Dortmund, Germany
Tel: +49 231 554045
Fax: +49 231 556049
Technical Details
Message-ID: <4in99a$6km@aiscube.ais-gmbh.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2f7970c7111b212f,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 115614,2f7970c7111b212f,start
X-Google-Attributes: gid115614,public
From: arndt@aiscube.ais-gmbh.de (Arndt Schoenewald)
Subject: gcc on AIX: how to get code running on both POWER and PowerPC?
Date: 1996/03/19
Message-ID: <4in99a$6km@aiscube.ais-gmbh.de>
X-Deja-AN: 143200502
organization: AIS GmbH, Universitaetsstr. 140, D-44799 Bochum, Germany
newsgroups: gnu.gcc.help,comp.unix.aix