Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.programmer Subject: Re: Self modifying code Message-ID: <22024@cbmvax.commodore.com> Date: 30 May 91 00:41:38 GMT References: <5005@orbit.cts.com> <1991May28.120630.10150@cs.umu.se> <1991May29.134419.4980@odin.diku.dk> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 16 In article <1991May29.134419.4980@odin.diku.dk> bombadil@diku.dk (Kristian Nielsen) writes: > Yes, this is the problem - I believe on the '040 its even worse, since a >write might only go to the (data) cache and not be written to memory until >later. Most certainly. For example, even if you were lucky on a 68030/68020 and the memory you wrote the code into wasn't in the cache, on an '040 in copyback made (which is a BIG win) the code you wrote will be sitting in the data cache but not in ram. When you try to execute them it fetches from memory. Poof. -- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Disclaimer: Nothing I say is anything other than my personal opinion. "No matter where you go, there you are." - Buckaroo Banzai