Re:Main is usually a function, so when is it not? (2015)
by Sharlin on Monday June 14, 2021 @05:53PM
(#27508785)
Coercing a data pointer into a function pointer is undefined behavior in standard C (they don't even need to be the same size), but at least on POSIX platforms the compiler must do the right thing because `dlsym` depends on it working. Generating and executing native code at runtime is not that special, mind; after all JIT compilers are ubiquitous these days!
[ Parent
| on HN ]
There are no comments on this comment yet.