🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42510

Re: GCC for AIX/PowerPC - Generates PPC specific code?

#42510
From: Shaheen Ali
Date: Wed, 29 Nov 1995 00:00
37 lines
1755 bytes
"bd" == bd  <rad@tyrell.net> writes:
In article <48gb9e$qga@news.cis.nctu.edu.tw> rad@tyrell.net (bd) writes:


bd> IBM's C compiler has options to optimize specific to the PowerPC
bd> processor.  How well does the GNU GCC compiler (I'm using 2.7.1)
bd> take advantage of PPC?

bd> bob.daniel rad@tyrell.net

Bob,
 
I can't comment on how well the gcc uses the powerpc instruction set,
however, with compile time gcc flags, the compiler can generate a wide
range of instructions specific to the varied power architecture.

-mpowerpc Generate powerpc specific instruction.
-mpower Generate power specific instructions.

Note that some power and powerpc instructions are mutually exclusive.
The PowerOpen ABI specifies that only instructions common to both
architectures are allowed.

Therefore, to build ABI compliant apps, use these flags:

-mnopower -mnopowerpc

Shaheen
--
--
"They're gone, buddy.  But, look at the bright side: They're GONE, buddy!"
	-- The Cat, _Red Dwarf_
Shaheen H. Ali, Hitachi Computer Products, Waltham, MA
ali@hi.com, [ space left blank due to unsolicited advice ]
work phone: (617) 890 0444, fax: (617) 890 4998

PGP fingerprint =  9C B1 FB F2 A5 62 64 C1  CB 6A E6 3A 86 B0 A4 B7 
Technical Details
Message-ID: <gnusenetALI.95Nov27100619@asterix.hi.Com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <48gb9e$qga@news.cis.nctu.edu.tw>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,235a5ac25a88d093
X-Google-Attributes: gid11318c,public
From: ali@asterix.hi.com (Shaheen Ali)
Subject: Re: GCC for AIX/PowerPC - Generates PPC specific code?
Date: 1995/11/29
Message-ID: <gnusenetALI.95Nov27100619@asterix.hi.Com>
X-Deja-AN: 120512457
distribution: gnu
sender: daemon@cis.ohio-state.edu
references: <48gb9e$qga@news.cis.nctu.edu.tw>
organization: Hitachi Computer Products (America), Inc.
newsgroups: gnu.gcc.help