Harvard vs. vonNeuman
emanuel stiebler
emu at ecubics.com
Tue Sep 28 08:58:04 CDT 2004
ben franchuk wrote:
> I have yet to see a good use for self-modifying code. Other than
> subroutines and interupts placing data into a code segement the only
> self modifying code I have seen was for the 8088.
I saw it actually pretty often, in computer graphics/imaging.
A lot of times you got very fast blitter routines by writing a
small function (at runtime) which performs what you like to do,
and branch to it. Or just changing the actual pixel-op at runtime,
or design the filter the "right" way (meaning that the routine knows
already that it starts on odd byte adressess, but can transfer
longwords, deals with overlaps, etc)
cheers
More information about the cctalk
mailing list