This is the mail archive of the
mailing list for the GCC project.
Re: Optimizations documentation
- From: Tim Prince <tprince at computer dot org>
- To: Константин <oks-mgn at mail dot ru>
- Cc: gcc at gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Tue, 01 Jan 2008 12:48:37 -0800
- Subject: Re: Optimizations documentation
- References: <E1J9nH0-000Amifirstname.lastname@example.org>
Hi!This topic seems more appropriate to the gcc-help mail list.
I ask you to put optimimizations tips for programmers into your documentation site on www. Sure, there are some texts about program optimimization, but you are the only one, who really understand compilation and execution processes and know how to make program faster.
I read on some site that it would better and quicker to use floats instead of doubles, use unsigned int instead of signed as counters in loops, mark const function parameters when they are and so on. Is it true for GCC (G++)?
Your compiler makes great optimization, but it'd be better if you explain to programmers how to help to compiler optimize program. For example, some time ago I listened that GCC supports vectorization, but still can't find anything about it, how can I use it in my programs.
Your site is the right place for such documentation. PLEASE put it on.
The on-line docs show a fair effort, although documentation of
-ftree-vectorize seems difficult to find in a single search:
Superior performance of float over double is more marked for the SSE
platforms, so you should specify your platform of interest when asking
If you want examples, quite a few of those are available on line.