Skip to content

Commit 58866ec

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent 61790c0 commit 58866ec

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
@@ -32,7 +32,7 @@ The best use-case I can think of for this technique is generating lookup tables
3232
- `assert()` calls get eliminated when conditions are provably true.
3333
- [Link-time optimization](https://en.wikipedia.org/wiki/Interprocedural_optimization) with `-flto` should allow Clang and GCC to perform these optimizations even when the code is split across several object files.
3434

35-
# Generic Stack
35+
# Generic stack
3636

3737
In this program I use `malloc()` and `free()` in order to demonstrate that they can be optimized away too.
3838

@@ -192,7 +192,7 @@ int main() {
192192
}
193193
```
194194
195-
# Generic Hash Map
195+
# Generic hash map
196196
197197
Because a hash map is a much more complex data structure than a stack, GCC struggles to optimize it perfectly.
198198

0 commit comments

Comments
 (0)