Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCC optimization flags for Intel Atom [closed]

I'm developing a performance critical application for Intel Atom processor.

What are the best gcc optimization flags for this CPU?

like image 978
user7305 Avatar asked Sep 21 '08 09:09

user7305


People also ask

Does March imply Mtune?

In contrast to -mtune= cpu-type , which merely tunes the generated code for the specified cpu-type , -march= cpu-type allows GCC to generate code that may not run at all on processors other than the one indicated. Specifying -march= cpu-type implies -mtune= cpu-type , except where noted otherwise.

What is optimization GCC?

The compiler optimizes to reduce the size of the binary instead of execution speed. If you do not specify an optimization option, gcc attempts to reduce the compilation time and to make debugging always yield the result expected from reading the source code.

How do I use optimization in GCC?

GCC has a range of optimization levels, plus individual options to enable or disable particular optimizations. The overall compiler optimization level is controlled by the command line option -On, where n is the required optimization level, as follows: -O0 . (default).

What does March Native mean?

With most C/C++ compilers, there's a flag passable to the compiler, -march=native , which tells the compiler to tune generated code for the micro-architecture and ISA extensions of the host CPU.


1 Answers

GCC 4.5 will contain the -march=atom and -mtune=atom options.

Source: http://gcc.gnu.org/gcc-4.5/changes.html

like image 152
user7305 Avatar answered Oct 07 '22 23:10

user7305