| www.delorie.com/archives/browse.cgi | search |
| X-pop3-spooler: | POP3MAIL 2.1.0 b 4 980420 -bs- |
| X-Authentication-Warning: | basis.Desk.nl: listserv set sender to owner-beastium-list AT basis DOT desk DOT nl using -f |
| From: | linux AT microsoft DOT sucks DOT eu DOT org |
| Date: | Fri, 27 Nov 1998 22:44:32 +0100 (CET) |
| To: | Steve <smkennedy AT uwaterloo DOT ca> |
| cc: | beastium-list AT desk DOT nl |
| Subject: | Re: Optimization with PGCC |
| In-Reply-To: | <365E3B57.1B5908C1@uwaterloo.ca> |
| Message-ID: | <Pine.LNX.4.04.9811272243020.18961-100000@k6.microsoft.sucks.eu.org> |
| MIME-Version: | 1.0 |
| Sender: | Marc Lehmann <pcg AT goof DOT com> |
| Status: | RO |
| Lines: | 25 |
> I just recently switched from gcc 2.8.1 to pgcc 1.1. I would like > to start compiling my programs passing the -O6 and -mpentiumpro switches > to pgcc (to get the most optimization). Add -march=pentiumpro to that. > I would prefer not to have to > go into each program's makefile and edit it. Is there a way to do this > from the command line? I tried : 'make CFLAGS="-O6 -mpentiumpro" but > that overrides all the other CFLAGS. I was wondering if there is a way > to add to the other CFLAGS. Anyone? A lot of programs (including almost all ones using autoconf) will react to a CFLAGS environment variable; try export CFLAGS="-O6 -mpentiumpro -march=pentiumpro" if you're in a bourne shell, or setenv CFLAGS "-O6 -mpentiumpro -march=pentiumpro" if you're in a c-shell. LLaP bero
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |