* COPTS for Makefile LinuxPPC 2000
@ 2000-10-20 22:17 Michael Norton
0 siblings, 0 replies; 3+ messages in thread
From: Michael Norton @ 2000-10-20 22:17 UTC (permalink / raw)
To: linuxppc-dev
hi,
I am trying to build the OpenGL Heretic game and there are compiler options in t
he Makefile for m68k but not for the PPC.
COPT.m68k = -m68020-60 -O2 -fomit-frame-pointer -D__BIG_ENDIAN__ -D__32BIT__ \
-DHAVE_ALLOCA_H
was should this statement read if I am going to compile a PPC image on my G4?
thanks,
Mike
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: COPTS for Makefile LinuxPPC 2000
[not found] <200010210500.AAA23065@lists.linuxppc.org>
@ 2000-10-23 11:39 ` Derek Homeier
2000-10-23 15:35 ` William Blew
0 siblings, 1 reply; 3+ messages in thread
From: Derek Homeier @ 2000-10-23 11:39 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Michael Norton
On Fri, 20 Oct 2000 15:17:26 -0700 (PDT), Michael Norton <mnorton@cisco.com> wrote:
>
> I am trying to build the OpenGL Heretic game and there are compiler options in t
> he Makefile for m68k but not for the PPC.
>
> COPT.m68k = -m68020-60 -O2 -fomit-frame-pointer -D__BIG_ENDIAN__ -D__32BIT__ \
> -DHAVE_ALLOCA_H
>
>
> was should this statement read if I am going to compile a PPC image on my G4?
>
Well, you probably should keep the defines, and possibly the "-fomit-frame-pointer"
as well, so leave everything after that unchanged. It's possible you need
"-fsigned-char" in addition. You obviously wouldn't want the "-m68020-60"
which turns on m68k-specific tuning. You might simply try "-O2" or "-O3" for a
first run. There also are some architecture-specific flags available on PPC,
such as"-mcpu=604", don't know if there is a flag for 750 or even 7400 yet.
You should look at the gcc info page for more details on the different
optimizations (under "Invoking GCC::"). Chances are you won't need
terribly agressive optimization if that game actually runs on a 68k :-).
HTH,
Derek
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: COPTS for Makefile LinuxPPC 2000
2000-10-23 11:39 ` Derek Homeier
@ 2000-10-23 15:35 ` William Blew
0 siblings, 0 replies; 3+ messages in thread
From: William Blew @ 2000-10-23 15:35 UTC (permalink / raw)
To: Derek Homeier; +Cc: linuxppc-dev, Michael Norton
On Mon, 23 Oct 2000, Derek Homeier wrote:
> such as"-mcpu=604", don't know if there is a flag for 750 or even 7400 yet.
As of gcc 2.95.2 (at least) there is a -mcpu=750 (or -mtune=750) option
and on my beige G3/266 it was good for about a 11% throughput improvement
on the utah-glx's memory bandwidth benchmarks.
--
William Blew, wblew@home.com
Gamer by Choice, Geek by Birth
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-10-23 15:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-20 22:17 COPTS for Makefile LinuxPPC 2000 Michael Norton
[not found] <200010210500.AAA23065@lists.linuxppc.org>
2000-10-23 11:39 ` Derek Homeier
2000-10-23 15:35 ` William Blew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).