Skip to content

Commit 02ebf4d

Browse files
authored
Update LTO testing context in comptime C functions post
Clarify testing context for LTO optimization in the document.
1 parent 337975e commit 02ebf4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_posts/2025-11-30-comptime-c-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Compile-time function execution is great, but what if you're:
1111

1212
The below programs get optimized away at compile time, such that only the `printf()` at the end of `main()` is left, both with GCC and Clang.
1313

14-
[LTO](https://en.wikipedia.org/wiki/Interprocedural_optimization) should in theory allow GCC and Clang to perform this optimization even when the code is split across several object files, but I haven't tested this.
14+
[LTO](https://en.wikipedia.org/wiki/Interprocedural_optimization) should in theory allow GCC and Clang to perform this optimization even when the code is split across several object files, but I haven't tested this for the below programs.
1515

1616
# Generic Stack
1717

0 commit comments

Comments
 (0)