1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-10-03 09:16:22 +00:00

Optimize some stdlib calls

This commit is contained in:
Karol Stasiak
2018-12-21 22:33:27 +01:00
parent 673727b973
commit e43fb39781
9 changed files with 107 additions and 7 deletions

View File

@@ -148,6 +148,11 @@ See the [documentation about inlining](../abi/inlining.md). Computationally easy
It enables certain optimization similar to what inlining would enable, but without actual inlining.
`.ini` equivalent: `ipo`.
* `-foptimize-stdlib`, `-fno-optimize-stdlib`
Whether should replace some standard library calls with constant parameters with more efficient variants.
Currently affects `putstrz` and `strzlen`, but may affect more functions in the future.
`.ini` equivalent: `optimize_stdlib`.
* `-Os`, `--size` Optimize for size, sacrificing some speed (experimental).
* `-Of`, `--fast` Optimize for speed, even if it increases the size a bit (experimental).