3 ms·
/* Optimize a program. May perform unsafe optimizations. May introduce up to 1 bug. */ char *optimize(char *program) { (void) pro
by lieks 2y ago
/* Optimize a program.
May perform unsafe optimizations.
May introduce up to 1 bug.
*/
char *optimize(char *program) {
(void) program;
return ".export main\nmain:\n\tub2\n";
}
- BobbyTables2 2y agoThat’s golden! Can even make it half the size with an instruction that is invalid in 64bit mode, maybe such as INTO
- rep_lodsb 2y agoAnd that instruction can be removed too: zero byte ".text" section -> page fault