Compiler Flags


aho

Member
Joined
May 16, 2009
Messages
183
Website
kaioa.com
In other posts some people mention they use the following ARM specific flags:

-msoft-float
-mcpu=arm926ej-s
-mtune=arm926ej-s (Edit: had "-tune" here)

However, the V8 build script uses a whole pile of switches (if Android is the target):

-march=armv5te
-mtune=xscale
-msoft-float

-fpic
-mthumb-interwork
-funwind-tables
-fstack-protector
-fno-short-enums
-fmessage-length=0
-finline-functions
-fno-inline-functions-called-once
-fgcse-after-reload
-frerun-cse-after-loop
-frename-registers
-fomit-frame-pointer
-fno-strict-aliasing
-finline-limit=64
-MD

Since the Wiz is very similar to Android handsets I do of course wonder if using these (or some of those) switches on the Wiz would make any sense.
 
You can see the flags used by some Wiz programs, but you must investigate online the mean.
Some of the V8 flags are generic, but others are platform specific or slows the app.

Flags used by GPSP:
-msoft-float -funsigned-char -fno-common -fno-builtin

Flags used by MAME4ALL:
-msoft-float -ffast-math -fomit-frame-pointer -fstrict-aliasing
-mstructure-size-boundary=32 -fexpensive-optimizations
-fweb -frename-registers -falign-functions=16 -falign-loops
-falign-labels -falign-jumps -finline -finline-functions
-fno-common -fno-builtin

Here you can see the GCC optimization options.
http://gcc.gnu.org/o...ptimize-Options
 
Back
Top