Add -fdata-sections, which is a new GCC 2.95 optimization. Remove
-fschedule-insns as it wasn't such a big win with 2.95 after all. Add the *BIG* win "-mpreferred-stack-boundary=2" optimiztion submitted by Dima. GCC 2.95 ensures the stack frame is always properly [opitimally] aligned by surrounding every function call by code simular to "addl $-12, %esp" / "addl $12, %esp". Here we need the reduction in space, with speed not an issue.
This commit is contained in:
parent
eb33411e9b
commit
c8e02dfe73
@ -28,8 +28,9 @@ ORG1= 0x7c00
|
||||
ORG2= 0x1000
|
||||
|
||||
CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. \
|
||||
-Os -fno-builtin -fforce-addr -fschedule-insns \
|
||||
-Os -fno-builtin -fforce-addr -fdata-sections \
|
||||
-malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \
|
||||
-mpreferred-stack-boundary=2 \
|
||||
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
|
||||
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
|
||||
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
|
||||
|
@ -28,8 +28,9 @@ ORG1= 0x7c00
|
||||
ORG2= 0x1000
|
||||
|
||||
CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. \
|
||||
-Os -fno-builtin -fforce-addr -fschedule-insns \
|
||||
-Os -fno-builtin -fforce-addr -fdata-sections \
|
||||
-malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \
|
||||
-mpreferred-stack-boundary=2 \
|
||||
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
|
||||
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
|
||||
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
|
||||
|
Loading…
Reference in New Issue
Block a user