![]() |
2011-04-03
, 17:54
|
Posts: 73 |
Thanked: 33 times |
Joined on Nov 2010
|
#2
|
-O6 -mcpu=cortex-a8 -mtune=cortex-a8 -fomit-frame-pointer -fsigned-char -mfpu=neon -mfloat-abi=softfp -march=armv7-a -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp
![]() |
2011-04-03
, 18:00
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#3
|
The Following User Says Thank You to javispedro For This Useful Post: | ||
![]() |
2011-04-03
, 18:12
|
Posts: 73 |
Thanked: 33 times |
Joined on Nov 2010
|
#4
|
-fmessage-length=0 -ftree-vectorize -Os -pipe
![]() |
2011-04-03
, 18:13
|
Posts: 73 |
Thanked: 33 times |
Joined on Nov 2010
|
#5
|
Half of the stuff you're specifying is already the default in scratchbox (mcpu, mtune, fomit-frame-pointer, mfpu=vfpv3, mfloat-abi, mlittle-endian)
-O2
![]() |
2011-04-03
, 18:53
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#6
|
I build a lotta stuff on the N900 when I don't have access to the PC, or it won't build in scratchbox...
![]() |
2011-04-03
, 19:25
|
Posts: 73 |
Thanked: 33 times |
Joined on Nov 2010
|
#7
|
Not necessarily, it will probably slow things down because of memory pressure. As usual, the answer is: don't assume it is, and benchmark.
![]() |
2011-04-03
, 19:30
|
Banned |
Posts: 358 |
Thanked: 160 times |
Joined on Dec 2010
|
#8
|
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:
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?Code:-O6 -mcpu=cortex-a8 -mtune=cortex-a8 -fomit-frame-pointer -fsigned-char -mfpu=neon -mfloat-abi=softfp
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?
![]() |
2011-06-23
, 15:43
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#9
|
![]() |
2011-06-23
, 23:21
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#10
|
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:
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?