Harvard vs. vonNeuman

Tom Peters tpeters at mixcom.com
Tue Sep 28 18:58:45 CDT 2004


I use a lot of self-modifying code: Perl scripts that generate HTML code!

Maybe that doesn't count...

At 11:43 PM 2/10/2006 -0500, you wrote:
>It was thus said that the Great ben franchuk once stated:
> >
> >   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.
>
>   Back when I took Assembly langauge (8086) at college, I used
>self-modifying code in one of the assignments (the teacher and I didn't get
>along and this was my attempt at getting a "rise" out of the teacher).  The
>assignment was to sort a list of numbers in ascending or descending order
>(depending upon user input) so I simply changed the jump instruction after
>the compare in the sort routine.  It saved either two copies of the routine
>(differing in only a single instruction), a complicated logical nest in the
>middle of a sort routine, or using a callback routine.
>
>   As far as I can recall, that was the *only* time I've ever done
>self-modifying code.
>
>   -spc (And it seemed like a good reason at the time ... )


[Wickedness] Wickedness is a myth invented by good people to account
for the curious attraction of others. --Oscar Wilde
--... ...--  -.. .  -. ----. --.- --.- -...
tpeters at nospam.mixcom.com   (remove "nospam") N9QQB (amateur radio)
"HEY YOU" (loud shouting)  WEB ADDRESS http//www.mixweb.com/tpeters
43° 7' 17.2" N by 88° 6' 28.9" W,  Elevation 815',  Grid Square EN53wc
WAN/LAN/Telcom Analyst, Tech Writer, MCP, Cisco Certified CCNA








More information about the cctalk mailing list