|
|
|
|
|
by barchar
387 days ago
|
|
It sometimes can, but you then have to balance the time spent optimizing against the time spent actually doing whatever you were optimizing. Also on modern chips you must wait quite a number of cycles before executing modified code or endure a catastrophic performance hit. This is ok for loops and stuff, but makes a lot of the really clever stuff pointless. The debuggers software breakpoints _are_ self-modifying code :) |
|