linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* When to use optimization ?
@ 2003-12-01  2:10 Jad Saklawi
  2003-12-01  6:59 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Jad Saklawi @ 2003-12-01  2:10 UTC (permalink / raw)
  To: linux-c-programming

  Hello guys,
When to use optimization in gcc (for example when i have loops, heavy 
IO, ???) and what is the difference between the optimization levels.
                                                                                                                                   
Greets, Jad

-- 
Jad Saklawi
Lebanese American University
P.O.Box : 13-5053/492
Chouran Beirut : 1102 2801
Phone : 009613 98 98 75
http://Saklawi.info
Lebanon



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

* Re: When to use optimization ?
  2003-12-01  2:10 When to use optimization ? Jad Saklawi
@ 2003-12-01  6:59 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2003-12-01  6:59 UTC (permalink / raw)
  To: Jad Saklawi; +Cc: linux-c-programming


Jad Saklawi wrote:

> When to use optimization in gcc (for example when i have loops, heavy 
> IO, ???)

Use optimisation for building "production" binaries (i.e. those which
are simply meant to be run by a user). Don't use optimisation when
building binaries which you wish to debug with e.g. gdb.

> and what is the difference between the optimization levels.

The "Optimize Options" section in the "gcc" Info file documents
exactly which optimisations are enabled by the different levels.

-- 
Glynn Clements <glynn.clements@virgin.net>

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

end of thread, other threads:[~2003-12-01  6:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-01  2:10 When to use optimization ? Jad Saklawi
2003-12-01  6:59 ` Glynn Clements

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).