Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

-O2 switch optimization

[es] :: C++ programiranje :: -O2 switch optimization

[ Pregleda: 397 | Odgovora: 3 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

NrmMyth
Split, Kaštela

Član broj: 63456
Poruke: 839
*.cmu.carnet.hr.



Profil

icon -O2 switch optimization05.05.2006. u 10:09

Sto sve uradi za mene -O2 ?
05.05.2006. u 10:09 

kiklop74
Darko Miletić
Buenos Aires

Član broj: 78422
Poruke: 424
..26.static.techtelnet.com.ar.



Profil

icon Re: -O2 switch optimization05.05.2006. u 17:18
Kakvo filozofsko pitanje
Tko leti vrijedi
05.05.2006. u 17:18 

NrmMyth
Split, Kaštela

Član broj: 63456
Poruke: 839
*.cmu.carnet.hr.



Profil

icon Re: -O2 switch optimization05.05.2006. u 18:35
meni se ucinilo zanimljivim.
05.05.2006. u 18:35 

cynique
Ivan Štambuk
Zagreb@Croatia

Član broj: 93690
Poruke: 155
193.198.17.*

ICQ: 106979934
Sajt: istambuk.blogspot.com


Profil

icon Re: -O2 switch optimization05.05.2006. u 23:45
http://www.network-theory.co.uk/docs/gccintro/gccintro_49.html

Citat:
This option turns on further optimizations, in addition to those
used by ‘-O1’. These additional optimizations include instruction
scheduling. Only optimizations that do not require any speed-space
tradeoffs are used, so the executable should not increase in size. The
compiler will take longer to compile programs and require more
memory than with ‘-O1’. This option is generally the best choice
for deployment of a program, because it provides maximum optimization
without increasing the executable size. It is the default
optimization level for releases of GNU packages.


http://www.network-theory.co.uk/docs/gccintro/gccintro_50.html

Citat:
Note that for a small program such as this there can be considerable variation between systems and compiler versions. For example, on a Mobile 2.0GHz Intel Pentium 4M system the trend of the results using the same version of GCC is similar except that the performance with -O2 is slightly worse than with -O1. This illustrates an important point: optimizations may not necessarily make a program faster in every case.

05.05.2006. u 23:45 

[es] :: C++ programiranje :: -O2 switch optimization

[ Pregleda: 397 | Odgovora: 3 ]

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.