Self-modifying code: Difference between revisions

Content deleted Content added
-'Encyclopidic' text should present knowledge, not recommend programming styles.. (mov'd txt around abit...)
No edit summary
Line 4:
==Assembly style self-modifying code:==
The kinds of self-modifying code that used in assembly, can be for various purpuses:
 
<1> Optimisation of a state dependant loop.
 
<2> runtime code generation, or specialisation of an algorithm in runtime or loadtime (which is popular, for examplein the ___domain of real-time graphics).
<3> alter inlined state of an [[object]], simulating the high level construction of [[closures]]
 
<3> alter inlined state of an [[object]], simulating the high level construction of [[closures]].
 
<4> patching of subrouting address calling, as done usually at load time of [[dynamic libraries]]. Wherther this is regarded 'self-modifying code' or not is a case or terminology.