Hacker News new | past | comments | ask | show | jobs | submit login

> There's no technical reason gcc couldn't just save+restore those registers around the block, but it doesn't.

While it's not impossible to do, it makes debugging a lot harder. gdb would have a much harder job of figuring out what's going on if the code messed with ebp, since the fp location would depend on the code. Some more debug information to describe that location could solve the problem... but why create that problem in the first place.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: