Skip to content

Commit 64c2b8b

Browse files
committed
Optimization for ape target is now more aggressive
1 parent 861c3f5 commit 64c2b8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compile-b2g-ape.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
wget https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-2.0.1.zip
22
unzip cosmopolitan-amalgamation-2.0.1.zip
3-
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
3+
gcc -g -Ofast -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
44
-fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs \
55
-DB2G_APE -o bmp2gba.com.dbg src/b2g_main.c src/b2g_types.h src/b2g_builder.c src/b2g_builder.h src/b2g_platform.c src/b2g_platform.h -fuse-ld=bfd -Wl,-T,ape.lds -Wl,--gc-sections \
66
-include cosmopolitan.h -Ilib/cosmopolitan/libc/isystem -Ilib/cosmopolitan crt.o ape-no-modify-self.o cosmopolitan.a -Ilib -Ilib/STC/include

src/b2g_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
int main()
66
{
77
static const COLOR transparent_color = RGB15(0, 0, 0);
8-
static const unsigned int brute_force_shuffle_count = 25000;
8+
static const unsigned int brute_force_shuffle_count = 250000;
99

1010
unsigned int file_names_count = 0;
1111
const char** file_names = platform_list_files_within_folder(".", &file_names_count, false, ".bmp");

0 commit comments

Comments
 (0)