On 3/26/19 8:57 PM, Ken Moffat via blfs-dev wrote:
On Tue, Mar 26, 2019 at 07:39:46PM -0500, Bruce Dubbs via blfs-dev wrote:
On 3/26/19 5:25 PM, Ken Moffat via blfs-dev wrote:

I have little experience using gdb, I'm
not entirely convinced that trying to debug a -O3 build would ever
be useful.

I agree.  -O3 removes a lot of code through things like inlining and changes
a lot with things like loop unrolling.  Generally I think that a lot of
optimization is unneeded unless a profile is done and critical sections
optimized.


But that has the implication "we should specify -O2 in CFLAGS and
CXXFLAGS when building a release".

Not really. My opinion is that we should use upstream's settings unless we have a specific reason to do otherwise (e.g. when we set FF top -O2).

"The release build disables runtime assertions which may slow down
the runtime experience (no, that is not sensible English, not sure
how to indicate that libraries as well as programs may run more
slowly, suggestions welcome) and also enables the highest level of
optimization (-O3) while removing debug symvbols.  If you need to
debug, passing CFLAGS and CXXFLAGS of "-O2 -g" with this may be more
useful." ??

The default in Mesa uses -O2 -g but also enables the
assertions, maybe a release with -O2 -g would be more useful ?

Are there problems with mesa without us changing the optimization?

I'm more concerned about highlighting whatever may turn out to be
the defaults for ninja and cmake (and until now I've been happy to
go with whatever the book offers for cmake programs, although my
opinion of cmake is lower than my opinion of my Prime Minister :)

Is that difficult?

ĸen - slowly getting back to his firefox diff: does anyone know of
a way to tell vim (i.e. 'view' with its nice colours) that a diff
which starts with a lot of ASCII is actually UTF-8 ?  I've already
got: set fileencoding=utf-8 but when I eventually hit some UTF-8 in
French translations (there might be who knows what encodings
in other translations) I get doubled bytes for accented letters.

I can't help with that, sorry.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to