Hacker News new | ask | show | jobs
by frutiger 300 days ago
A SIGSEGV is not guaranteed when calling an address that does not have a function.
1 comments

Are you talking about C? In C it's not guaranteed whether a non existing function will result in an actual function call. As soon as an actual function call was generated by the compiler, a modern CPU is very likely to trap.

We are talking about an optimization of a language implementation here. This would be very much written in a ASM or another language were this is defined.