Skip to content

Commit 6df5e0e

Browse files
Enable level 3 optimization for user programs
1 parent 56db397 commit 6df5e0e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

user/user_programs/cpptest/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ USERLIB=../../user_tools
33
ASFLAGSOBJ= -O32 -f elf
44
NASM = nasm
55

6-
CFLAGS= -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
6+
CFLAGS= -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-g++
88

99
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive

user/user_programs/pcilist/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ USERLIB=../../user_tools
33
ASFLAGSOBJ= -O32 -f elf
44
NASM = nasm
55

6-
CFLAGS= -std=c99 -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
6+
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

99
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive

user/user_programs/raycaster/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ USERLIB=../../user_tools
33
ASFLAGSOBJ= -O32 -f elf
44
NASM = nasm
55

6-
CFLAGS= -std=c99 -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
6+
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

99
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive

user/user_programs/shell/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ USERLIB=../../user_tools
33
ASFLAGSOBJ= -O32 -f elf
44
NASM = nasm
55

6-
CFLAGS= -std=c99 -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
6+
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

99
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive

user/user_programs/threadtest/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ USERLIB=../../user_tools
33
ASFLAGSOBJ= -O32 -f elf
44
NASM = nasm
55

6-
CFLAGS= -std=c99 -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
6+
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

99
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive

0 commit comments

Comments
 (0)