Skip to content

Commit 3c921f2

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent f334461 commit 3c921f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Compile-time function execution is great, as it means your program has to run le
1111

1212
The below data structure showcase programs get optimized away at compile time by Clang and GCC, using [constant folding](https://en.wikipedia.org/wiki/Constant_folding), [inlining](https://en.wikipedia.org/wiki/Inline_expansion), and [dead code elimination](https://en.wikipedia.org/wiki/Dead-code_elimination):
1313
```nasm
14-
fn_version:
15-
ret
14+
fn_version: ; label for the fn_version() function
15+
ret ; return statement
1616
1717
macro_version:
1818
ret

0 commit comments

Comments
 (0)