4 ms·
Compiling code at runtime is not self-modifying. For instance, in GPGPU programming, the kernels (=code running on GPUs) are usually compiled at runtime. And of
by ktpsns 5y ago
Compiling code at runtime is not self-modifying. For instance, in GPGPU programming, the kernels (=code running on GPUs) are usually compiled at runtime. And of course any time of JITs in scripting languages do the same.
- aaaaaaaaaaab 5y agoOk, then consider a lazy-loading dynamic linker that rewrites the thunks when the library is loaded.
- smasher164 5y agoWhat about rewriting CPU feature-detection code to remove branching?
- dataflow 5y agoYeah, I think this is the answer to OP's question.