3 ms·
Crazy how little code it is.
by lingzb 8y ago
Crazy how little code it is.
- pjc50 8y agoWell, it doesn't have any control flow, symbols, or system calls, so most of the work is in setting up a buffer and calling conventions. There's also no language intermediate representation or optimiser. The W^X machinery bans self-modifying code in the traditional sense, but there may be situations where creating little specifically-optimised gadgets like this can benefit a program.