delorie.com/archives/browse.cgi | search |
X-pop3-spooler: | POP3MAIL 2.1.0 b 4 980420 -bs- |
Date: | Thu, 2 Jul 1998 19:10:55 +0200 (CEST) |
From: | Linux mailing list user <linux AT windows95 DOT sucks DOT eu DOT org> |
X-Sender: | linux AT k6 DOT bero |
To: | Neal Jacob Burns <nburns+@andrew.cmu.edu> |
cc: | beastium-list AT Desk DOT nl |
Subject: | Re: pgcc optimizes by default? |
In-Reply-To: | <opavLFy00YUo1P70U0@andrew.cmu.edu> |
Message-ID: | <Pine.LNX.3.96.980702190935.6497A-100000@k6.bero> |
MIME-Version: | 1.0 |
Sender: | Marc Lehmann <pcg AT goof DOT com> |
Status: | RO |
X-Status: | A |
Lines: | 23 |
On Thu, 2 Jul 1998, Neal Jacob Burns wrote: > Does pgcc require any special command-line options to pentium optimize, > (e.g. -mpentium)? Yes. Use -mpentium -march=pentium. (The latter says that the compiler may use pentium-specific asm instructions.) > More specifically, will pgcc optimize for pentium if > it is invoked with: > gcc -O2 -c whatever.c > (which is roughly how most Makefile's invoke it by default)? You can change the "default" behavior by setting environment variables (preferably in the /etc/profile): export CFLAGS="-mpentium -march=pentium -O2 -whateverelseyouwant" export CXXFLAGS=$CFLAGS LLaP bero
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |