|
|
| | Ask HN: Going low-level – what to learn next? | |
100 points by visil 6 months ago | hide | past | favorite | 56 comments
|
| | I've been interested in (relatively) low-level programming for quite some time. I know C, I can read assembly (write - not so much) and I have basic understanding of CPU (registers, cache, stack and whatnot). What should I read or learn next to be able to reason about things like cache usage of a C program or possible low-level microoptimizations?
It's still just a hobby for me for the most part, so it's not that I'm trying to prematurely optimize some production code. I'm just interested in how it all works under the hood. |
|
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
https://sysprog21.github.io/lkmpg/
https://blog.sourcerer.io/writing-a-simple-linux-kernel-modu...
If you want to "go low" in the way hardware works, you could try and write an interrupt handler on an embedded device.
If you want to "go low" in how optimizations work in application development, you could try and implement microbenchmarks and look at flamegraphs.
https://github.com/brendangregg/FlameGraph
https://bheisler.github.io/criterion.rs/book/index.html