mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 15:55:25 +00:00
overclock
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user