Compile options?


Silent-Hunter

Hardcore Member
Joined
May 29, 2010
Messages
3,485
Anything I can do at compile time to make the program I ported run a bit better? I already did -O2. Anything else I can add to the makefile to improve the performance?
 
Last edited by a moderator:
Depends on the app, but can help

NEON := -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ffast-math -fsingle-precision-constant
Do I put the NEON:=, or just the rest of it? Sorry, I'm new at this.

Thanks for the help!
 
NEON := is just a variable if you use a makefile so you could something like CFLAGS := -O2 $(NEON)

just put everything after the NEON := after your -O2
 
Last edited by a moderator:
NEON := is just a variable if you use a makefile so you could something like CFLAGS := -O2 $(NEON)

just put everything after the NEON := after your -O2
I do use a makefile, but I'll just put everything after -O2 anyway, since that's easier. Unless there's a reason I shouldn't.
 
Back
Top