Skip to content

Commit 7deaed9

Browse files
authored
[libc] Reduce binary size for baremetal targets (#121164)
For `math` functions we must choose size optimized implementations. Removing framepointers will also help with binary size savings.
1 parent 8e9fda1 commit 7deaed9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libc/config/baremetal/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,15 @@
2525
"LIBC_CONF_QSORT_IMPL": {
2626
"value": "LIBC_QSORT_HEAP_SORT"
2727
}
28+
},
29+
"math": {
30+
"LIBC_CONF_MATH_OPTIMIZATIONS": {
31+
"value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
32+
}
33+
},
34+
"codegen": {
35+
"LIBC_CONF_KEEP_FRAME_POINTER": {
36+
"value": false
37+
}
2838
}
2939
}

0 commit comments

Comments
 (0)