Re:Writing a self-modifying x86 factorial program
by jhgb on Wednesday December 15, 2021 @09:49AM
(#29566660)
> Does it make sense to write self-modifying code not for obfuscation but for optimization? Can we have such code to speed up calculations in a way that is not possible with static code?
That depends; how broad is your definition of "self"? Within a process, this is a fairly common approach already (JIT).
That depends; how broad is your definition of "self"? Within a process, this is a fairly common approach already (JIT).