Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!cbmehq!babylon!rbabel From: rbabel@babylon.rmt.sub.org (Ralph Babel) Newsgroups: comp.sys.amiga.programmer Subject: Re: Help! (AmigaDOS CreateProc/LoadSeg) Message-ID: <06533.AA06533@babylon.rmt.sub.org> Date: 11 Mar 91 19:23:12 GMT References: <63329@eerie.acsu.Buffalo.EDU> <19578@cbmvax.commodore.com> <06417.AA06417@babylon.rmt.sub.org> Reply-To: cbmvax.commodore.com!cbmehq!babylon!rbabel (Ralph Babel) Lines: 18 In article , rosenber@ra.abo.fi (Robin Rosenberg INF) writes: > I have a slightly different version, that does not contain > self-modifying code. Instead of patching the jump > instrction, I patch data for the instruction. This code is > of course not reentrant. Not being reentrant is kind of ugly, of course, but I see two more potential problems: Static structures are not necessarily longword-aligned (at least with SAS/C 5.10a), and - structures usually being located in a data hunk - a future version of LoadSeg() _could_ selectively clear the code cache only for the address ranges of the code hunks just loaded, not data and bss - a useful optimization for very big caches. This is purely fictitious, of course. Ralph