Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!mips!apple!mrspoc!starnet!sschaem From: sschaem@starnet.uucp (Stephan Schaem) Newsgroups: comp.sys.amiga.programmer Subject: Re: Self modifying code Message-ID: <1991May29.080555.1921@starnet.uucp> Date: 29 May 91 08:05:55 GMT Article-I.D.: starnet.1991May29.080555.1921 References: <5005@orbit.cts.com> <1991May28.120630.10150@cs.umu.se> Organization: Starnet-Public Access UNIX-Los Altos,CA 415-949-3133, login:info Lines: 19 Turn the cache OFF is you want to be sure... If you do code creation you memory is not 'defined' as READ or READ/WRITE so you dont even have to do that. I alway consider code section has being read only, and if I have read/write data I create a data section (But keep my READ only structure/data in the code section, ho well :-) Self modifying code or running code is something else! Flush the cache if you really need to do it, dont think your instruction is not 'preloaded' in case you dont turn the cache off! Relocable code is not done on a running task, and done by the DOS.Thats the diference... To make the story long, you dont have to do anything in your case... Stephan.