i was curious . if i make a self modeifing code on the stack will it be slower ?



bye

eko
Posted on 2002-08-05 04:55:54 by eko
There is no difference is speed as to where the self modifying code is, because its all the same - memory. Although, self modifying code can be an elegant trick sometimes but it is also quite slow - on modern CPUs, it means the CPU will have to invalidate code cache and that does kill quite a few CPU clocks.
Posted on 2002-08-05 10:39:34 by comrade
There is a good chance the stack isn't in the code cache. :grin:
Posted on 2002-08-05 10:46:02 by bitRAKE