-
Notifications
You must be signed in to change notification settings - Fork 30
/
OptAtom.mk
53 lines (49 loc) · 1.93 KB
/
OptAtom.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Atom optimizations specified to improve memory speed.
ARCH_X86_HAVE_MMX := true
ARCH_X86_HAVE_SSE := true
ARCH_X86_HAVE_SSE2 := true
ARCH_X86_HAVE_SSE3 := true
ARCH_X86_HAVE_SSSE3 := true
ARCH_X86_HAVE_MOVBE := true
ARCH_X86_HAVE_POPCNT := false
TARGET_GLOBAL_CFLAGS += \
-O2 \
-flto \
-march=atom \
-mmmx \
-msse \
-msse2 \
-msse3 \
-mssse3 \
-mpclmul \
-mcx16 \
-msahf \
-mmovbe \
-ftree-vectorize \
-fomit-frame-pointer \
-finline-functions \
-fpredictive-commoning \
-fgcse-after-reload \
-fforce-addr \
-ffast-math \
-fsingle-precision-constant \
-floop-block \
-floop-interchange \
-floop-strip-mine \
-floop-parallelize-all \
-ftree-parallelize-loops=2 \
-ftree-loop-if-convert \
-ftree-loop-if-convert-stores \
-ftree-loop-distribution \
-foptimize-register-move \
-fgraphite-identity \
# The following are very specific to our Atom
TARGET_GLOBAL_CFLAGS += \
--param l1-cache-line-size=64 \
--param l1-cache-size=24 \
--param l2-cache-size=512 \
TARGET_GLOBAL_CFLAGS += -DUSE_SSSE3 -DUSE_SSE2
TARGET_GLOBAL_CPPFLAGS += -march=atom -fno-exceptions
TARGET_GLOBAL_LDFLAGS += -Wl,-O1
# customize the malloced address to be 16-byte aligned
BOARD_MALLOC_ALIGNMENT := 16