Linux Newbie help
 help / color / mirror / Atom feed
* Compile Options for Optimized Programs
@ 2002-08-10  2:36 1stFlight
  2002-08-10 14:53 ` Benoit Joseph
  0 siblings, 1 reply; 2+ messages in thread
From: 1stFlight @ 2002-08-10  2:36 UTC (permalink / raw)
  To: linux newbie

  Awhile back I found some options for optimizing programs on a i686 (Athlon) 
processor during compile..something along the lines of - O3 -mpcu -march  do 
things options (environment settings I believe) ring a bell to anyone, and if 
so how do I impliement them? Thanks!

   																Darryl
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compile Options for Optimized Programs
  2002-08-10  2:36 Compile Options for Optimized Programs 1stFlight
@ 2002-08-10 14:53 ` Benoit Joseph
  0 siblings, 0 replies; 2+ messages in thread
From: Benoit Joseph @ 2002-08-10 14:53 UTC (permalink / raw)
  To: 1stFlight; +Cc: linux newbie

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]


For optimizing your compiled apps, there are a lot of options:

-O3
-march=ARCH
-mcpu=ARCH

but there are many else. Make man gcc and go to the Optimization Options
section. For enabling them just put them on the command line at compile
time.

If you want to modify an existing makefile, you can set the CFLAGS and
the CPPFLAGS environment variables. If you use bash, this can be done
with 
export CFLAGS="-option1 -option2 ..."

Hope this helps 

Benoit 

On Fri, Aug 09, 2002 at 10:36:48PM, 1stFlight wrote:
>   Awhile back I found some options for optimizing programs on a i686 (Athlon) 
> processor during compile..something along the lines of - O3 -mpcu -march  do 
> things options (environment settings I believe) ring a bell to anyone, and if 
> so how do I impliement them? Thanks!
> 
>    																Darryl
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
---end quoted text---

-- 

Benoit JOSEPH 
Manex SPRL: benoit.joseph@manex.be
Perso: joker@baby-linux.net
       benoit.joseph@teledisnet.be

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-10 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-10  2:36 Compile Options for Optimized Programs 1stFlight
2002-08-10 14:53 ` Benoit Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox