I am trying to use the GCC pragma optimize to set global optimizations in my C code. GCC version is 4.4.3 on Ubuntu. The basic idea is to use function specific optimization leve
For the last question: you could put it into a separate compilation unit and use the command line switch: -O3
-O3