comparison auto/cc @ 287:35a6a9df2d25

nginx-0.0.2-2004-03-12-19:57:08 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 12 Mar 2004 16:57:08 +0000
parents fc8dc489247e
children f81d075ad172
comparison
equal deleted inserted replaced
286:fc8dc489247e 287:35a6a9df2d25
6 6
7 # optimization 7 # optimization
8 #CFLAGS="$CFLAGS -O2 -fomit-frame-pointer" 8 #CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
9 9
10 case $CPU in 10 case $CPU in
11 pentium)
12 # optimize for Pentium and Athlon
13 CPU_OPT="-march=pentium"
14 ;;
15
11 pentiumpro) 16 pentiumpro)
12 # optimize for Pentium Pro, Pentium II and Pentium III 17 # optimize for Pentium Pro, Pentium II and Pentium III
13 CPU_OPT="-march=pentiumpro" 18 CPU_OPT="-march=pentiumpro"
14 ;; 19 ;;
20
15 pentium4) 21 pentium4)
16 # optimize for Pentium 4, gcc 3.x 22 # optimize for Pentium 4, gcc 3.x
17 CPU_OPT="-march=pentium4" 23 CPU_OPT="-march=pentium4"
18 ;; 24 ;;
19 esac 25 esac
83 CFLAGS="$CFLAGS -Ob1" 89 CFLAGS="$CFLAGS -Ob1"
84 # inline any function, at the compiler's discretion 90 # inline any function, at the compiler's discretion
85 #CFLAGS="$CFLAGS -Ob2" 91 #CFLAGS="$CFLAGS -Ob2"
86 92
87 case $CPU in 93 case $CPU in
94 pentium)
95 # optimize for Pentium and Athlon
96 CPU_OPT="-march=pentium"
97 ;;
98
88 pentiumpro) 99 pentiumpro)
89 # optimize for Pentium Pro, Pentium II and Pentium III 100 # optimize for Pentium Pro, Pentium II and Pentium III
90 CPU_OPT="-mcpu=pentiumpro -march=pentiumpro" 101 CPU_OPT="-mcpu=pentiumpro -march=pentiumpro"
91 ;; 102 ;;
103
92 pentium4) 104 pentium4)
93 # optimize for Pentium 4, default 105 # optimize for Pentium 4, default
94 CPU_OPT="-march=pentium4" 106 CPU_OPT="-march=pentium4"
95 ;; 107 ;;
96 esac 108 esac
146 # disable stack checking calls 158 # disable stack checking calls
147 CFLAGS="$CFLAGS -Gs" 159 CFLAGS="$CFLAGS -Gs"
148 160
149 case $CPU in 161 case $CPU in
150 pentiumpro) 162 pentiumpro)
163 # optimize for Pentium and Athlon
164 CPU_OPT="-G5"
165 ;;
166
167 pentiumpro)
151 # optimize for Pentium Pro, Pentium II and Pentium III 168 # optimize for Pentium Pro, Pentium II and Pentium III
152 CPU_OPT="-G6" 169 CPU_OPT="-G6"
153 ;; 170 ;;
171
154 pentium4) 172 pentium4)
155 # optimize for Pentium 4 173 # optimize for Pentium 4
156 #CPU_OPT="-G7" 174 #CPU_OPT="-G7"
157 ;; 175 ;;
158 esac 176 esac
216 CFLAGS="$CFLAGS -oe" 234 CFLAGS="$CFLAGS -oe"
217 # disable stack checking calls 235 # disable stack checking calls
218 CFLAGS="$CFLAGS -s" 236 CFLAGS="$CFLAGS -s"
219 237
220 case $CPU in 238 case $CPU in
239 pentium)
240 # optimize for Pentium and Athlon
241 # register-based arguments passing conventions
242 CPU_OPT="-5r"
243 # stack-based arguments passing conventions
244 #CPU_OPT="-5s"
245 ;;
246
221 pentiumpro) 247 pentiumpro)
222 # optimize for Pentium Pro, Pentium II and Pentium III 248 # optimize for Pentium Pro, Pentium II and Pentium III
223 # register-based arguments passing conventions 249 # register-based arguments passing conventions
224 CPU_OPT="-6r" 250 CPU_OPT="-6r"
225 # stack-based arguments passing conventions 251 # stack-based arguments passing conventions