🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41550

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

#41550
From: JJ Keijser
Date: Wed, 20 Mar 1996 00:00
34 lines
2087 bytes
In article <4in99a$6km@aiscube.ais-gmbh.de>,
   arndt@aiscube.ais-gmbh.de (Arndt Schoenewald) wrote:
>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.

the gcc config program causes gcc to compile code for the platform on which it 
is running. Check the docs on how to setup cross-compile options. It *might* 
be the case that you're using instructions that the other boxes can't handle; 
it might also be the difference in the AIX versions. I'm quite sure you can't 
run AIX 4.1.4 executables on AIX 3.2.5. That's a problem with AIX, not with 
gcc.

HTH,

JJ


----------------------------------------------------------
  Jan Just (JJ) Keijser
  SMTP: jjk@lbvrtda.logica.com
  X400: C=GB A=ATTMAIL P=Logica O=LBV OU1=LBVRTDA S=JJK
  I prefer clear blue skies over a bunch of clouds any day
  My views are my own...
                    flames > /dev/null 2>&1
----------------------------------------------------------
Technical Details
Message-ID: <4iodhi$8al@romeo.logica.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4in99a$6km@aiscube.ais-gmbh.de>

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: jjk@lbvrtda.logica.com (JJ Keijser)
Subject: Re: gcc on AIX: how to get code running on both POWER and PowerPC?
Date: 1996/03/20
Message-ID: <4iodhi$8al@romeo.logica.co.uk>
X-Deja-AN: 143352206
references: <4in99a$6km@aiscube.ais-gmbh.de>
organization: Logica BV
newsgroups: gnu.gcc.help,comp.unix.aix