Skip to content

Commit

Permalink
[libc] Reduce binary size for baremetal targets (#121164)
Browse files Browse the repository at this point in the history
For `math` functions we must choose size optimized implementations.
Removing framepointers will also help with binary size savings.
  • Loading branch information
Prabhuk authored Dec 26, 2024
1 parent 8e9fda1 commit 7deaed9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libc/config/baremetal/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,15 @@
"LIBC_CONF_QSORT_IMPL": {
"value": "LIBC_QSORT_HEAP_SORT"
}
},
"math": {
"LIBC_CONF_MATH_OPTIMIZATIONS": {
"value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
}
},
"codegen": {
"LIBC_CONF_KEEP_FRAME_POINTER": {
"value": false
}
}
}

0 comments on commit 7deaed9

Please sign in to comment.