public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Francisco Rivas" <taken2k4@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: CFLAGS "...-O3 -pipe" vs "...O2 <no pipe>"
Date: Wed, 11 Apr 2007 08:37:49 -0400	[thread overview]
Message-ID: <2fcf3fa50704110537j30677125h360e882281c9294d@mail.gmail.com> (raw)
In-Reply-To: <200704111345.04546.bo.andresen@zlin.dk>

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

Hi all..

I think what -O3 is not _dangerous_ when you know how to use, a few posts
ago someone mentioned not all of packages can be compiled using -O3, if I am
not wrong was GCC and OpenOffice.org.

The thing is: -O3 is not a _damage_ is an carefully flag to compile for some
packages..

In some webpages I people said : ".. -O3 is not used by developer because
come troubles when you want to do a debug..".

But:
 http://www.nersc.gov/vendor_docs/intel/f_ug2/dbg_opt.htm,
 http://linuxgazette.net/121/hegde.html,
http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/index.jsp?topic=/com.ibm.xlf81m.doc/pgs/ug42.htm
.

"...The following setting is the "Optimizations". You shouldn't use O3 as it
takes longer to compile, the generated code will be sometimes faster,
sometimes slower and almost always larger. For example, a program that was
compiled with the O2 level of optimization is 250KB large and is quite fast,
the same program compiled with the O3 level of optimization can take more
time to compile, produce a larger binary, depending on the code, even
500-700KB large and it can be slower or faster. Therefore, the O3
optimization level isn't recommended. Use O2 if you need the best
optimization without adding the risk of obtaining large binaries, which need
a long time to be loaded before being executed and are not always faster..."
take of http://www.softpedia.com/reviews/linux/Gentoo-Review-20543.shtml.


On 4/11/07, Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
>
> On Wednesday 11 April 2007 12:56:43 Daniel Iliev wrote:
> > Sorry, I don't get it. Perhaps it is my poor English but I couldn't
> > understand two things:
> >  - Is -O3 supported by Gentoo or not?
>
> -O3 is supported by Gentoo.
>
> >  - What's the special thing about Gentoo ebuilds that makes -O3
> dangerous?
>
> No no. The special thing about Gentoo ebuilds is that -O3 in make.conf is
> safe
> for all packages because those packages for which -O3 isn't safe are
> replacing it with -O2 in the ebuilds (or eclasses).
>
> --
> Bo Andresen
>
>


-- 
['Cause without love I won't survive, I love you]. I

Francisco Rivas
2.6.19-gentoo-r5 x86
udev v087 gnome 2.16.2
xorg-x11-7.1 hotplug v20040923-r2
e-mail : fjrivas@uc.edu.ve
msn : taken2k4@gmail.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/E/IT/MU d-(+)@ s++: a-- C++++>++++ ULSC*()>+++ P+(++)>+++ L++(+++)>++++
!E--- W+>++ !N* !o-(--)>-- K--? !w--- !O !M !V PS@ !PE@ Y> PGP t 5 X R+>+
tv- b DI D G e++>+++ h-> r++>+++ y-
------END GEEK CODE BLOCK------

[-- Attachment #2: Type: text/html, Size: 3461 bytes --]

  reply	other threads:[~2007-04-11 12:43 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-09  1:48 [gentoo-user] CFLAGS "...-O3 -pipe" vs "...O2 <no pipe>" maxim wexler
2007-04-09  1:57 ` Sascha Hlusiak
2007-04-09  5:47 ` Andrey Gerasimenko
2007-04-09  8:28   ` Neil Bothwick
2007-04-09 12:40 ` [gentoo-user] " Alexander Skwar
2007-04-09 13:43   ` Francisco Rivas
2007-04-10 14:29     ` maxim wexler
2007-04-10 14:58       ` Uwe Thiem
2007-04-10 15:17         ` Bo Ørsted Andresen
2007-04-10 15:29         ` Francisco Rivas
2007-04-10 15:55           ` Tony Stohne
2007-04-10 16:40             ` Andrey Vul
2007-04-10 18:48               ` maxim wexler
2007-04-10 19:01                 ` Francisco Rivas
2007-04-10 19:10                   ` Davi
2007-04-10 19:45                     ` Uwe Thiem
2007-04-10 19:50                       ` Bo Ørsted Andresen
2007-04-10 19:56                       ` Jesús Guerrero
2007-04-10 20:08                         ` Davi
2007-04-10 20:15                           ` Jesús Guerrero
2007-04-10 20:24                             ` Davi
2007-04-10 22:03                               ` Ryan Sims
2007-04-11  0:34                                 ` Davi
2007-04-11 10:02                           ` [gentoo-user] " Alexander Skwar
2007-04-10 21:22                         ` [gentoo-user] " Uwe Thiem
2007-04-10 21:08                       ` Dan Farrell
2007-04-10 19:52                     ` Renat Golubchyk
2007-04-10 19:39                 ` Uwe Thiem
2007-04-11  9:39                 ` Daniel Iliev
2007-04-11 10:08                   ` Bo Ørsted Andresen
2007-04-11 10:56                     ` Daniel Iliev
2007-04-11 11:05                       ` Davi
2007-04-11 11:44                       ` Bo Ørsted Andresen
2007-04-11 12:37                         ` Francisco Rivas [this message]
2007-04-11 12:45                         ` Daniel Iliev
2007-04-10 15:29       ` Jesús Guerrero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2fcf3fa50704110537j30677125h360e882281c9294d@mail.gmail.com \
    --to=taken2k4@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox