overclock

This commit is contained in:
sawyer committed 2025-11-12 14:11:13 -07:00
1 parent f7a0562625
commit 35d9cd092d
4 files changed
+17 -10

No files matched your search

+3 -5
View File
@@ -48,13 +48,11 @@ fn bindgen() {
.file("peanut_gb_stub.c")
.include("Peanut-GB")
// optimization flags
.flag("-O3") // max optimization
.flag("-ffast-math") // faster floating point, if any
.flag("-funroll-loops") // unroll small loops
// CPU/architecture flags (example for ARM Cortex-M33)
.flag("-Ofast")
.flag("-fdata-sections")
.flag("-ffunction-sections")
.flag("-mcpu=cortex-m33")
.flag("-mthumb")
// optional: strip debug info
.flag("-g0")
.compile("peanut_gb");