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 X-Sender: linux AT k6 DOT bero To: Neal Jacob Burns cc: beastium-list AT Desk DOT nl Subject: Re: pgcc optimizes by default? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Marc Lehmann Status: RO X-Status: A Content-Length: 629 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