Hacker News

Favorites Setup
Comment by xtajv | original | C for Rust programmers
[−]xtajv · 2026-10-11 Sun 08:54 UTC · link
Respectfully, I'm sure that there's some exotic usecase that is motivating the question, but

> nobody in decades thought to make this information accessible to the programmer

> otherwise free could not work

I'm inclined to say that you just answered your own question as to why.

I was always taught that "There are parts of a binary that are there for you, the lucky high-level language programmer. And then there are other parts of the binary which are there for the compiler to clean up after the spoiled little high-level language programmer who doesn't have to write their own assembly :)"

and

"If you want to argue with the compiler, that's what `gcc -S -fverbose-asm` and $YOUR_FAVORITE_TEXT_EDITOR` is for".

But I'm curious if this advice is unrealistic for said exotic usecase.

Do tell?