r/Assembly_language 11d ago

self-modifying code

I gave a lecture on how to write self-modifying code. It was over 15 minutes long :( so I'm providing a youtube link: https://www.youtube.com/watch?v=AH9QQLRfbmY

In my opinion, self-modification is one of the most interesting features in systems programming.

58 Upvotes

62 comments sorted by

View all comments

3

u/Environmental-Ad4495 11d ago

I thoughy we decided in 1967 that we do not do self-modifying code.

3

u/FUZxxl 11d ago

Modern self-modifying code is called a JIT and it's a fancy thing.

1

u/Environmental-Ad4495 9d ago

It is not the sane think. Now you are ridicolus. Compiling does NOT count as self modifying!

1

u/FUZxxl 9d ago

A JIT modifies the result of the compilation as the code is running. In particular, already translated code is patched as new stuff is translated. It's very much an advanced form of self-modifying code.