News for hackers. Stuff that matters.
Re:Writing a Self-Mutating x86_64 C Program (2013) by darkmighty on Friday January 11, 2019 @04:46PM (#18887463)
Fascinating! I assume this kind of technique has been obsoleted by branch prediction, or are there imaginable modern applications?
Re:Writing a Self-Mutating x86_64 C Program (2013) by shakna on Friday January 11, 2019 @07:05PM (#18888453)
One of the reasons we needed extremely aggressive unrolling was the size/lack of a stack, making recursion or anything that might look like it difficult/limited/impossible, due to needing to store a location to jump back to.

Anything you could do to minimise the amount of things needed to store, and their size, wasn't wasted time.

And though it might very ocassionally be similarly necessary on some chips today, it's more likely you'll work in assembly on those.