View Single Post
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#8
Originally Posted by jj0 View Post
What are the best CFLAGS for the N900, to compile code best optimized for the N900's architecture, running the fastest?

I've seen some presentation of Nokia, which said: "... and don't forget to set CFLAGS XXXXXXXX to take care of XXXXXX" but can't find it...

From what I've searched for and found, I've got:

Code:
-O6 -mcpu=cortex-a8 -mtune=cortex-a8 -fomit-frame-pointer -fsigned-char -mfpu=neon -mfloat-abi=softfp
The -O6 is from some stuff that I read way back, where they were disscussing, -O3 and some guy said why not -O4, to which there were replies like -O4 doesn't even exist in GCC and somebody got to the resolution of -O6 being the best for any given architecture?

I've tried to read the GCC documentation, but got no resolution of anything beyond -O3 existing...

Does it?

And then is there anything I should add to the CFLAGS above, or are these the best custom choice for the N900?
I usually use -O3 -fomit-frame-pointer -ffast-math on my other Linux box. This is quite safe and with -fast-math on it should be quite fast too. But it depends on you usage!