4 ms·
Before we started restricting execution to areas of memory designated as code regions for security reasons, self-modifying code was a technique occasionally use
by smolder 4y ago
Before we started restricting execution to areas of memory designated as code regions for security reasons, self-modifying code was a technique occasionally used to reduce memory footprint or optimize hot loops. IIRC early MS-DOS used that trick, implemented by Gates himself.