Xref: utzoo comp.lang.c:11526 comp.arch:5730 Path: utzoo!utgpu!attcan!uunet!mcvax!kunivv1!hobbit!ge From: ge@hobbit.sci.kun.nl (Ge' Weijers) Newsgroups: comp.lang.c,comp.arch Subject: Re: Self-modifying code Message-ID: <304@hobbit.sci.kun.nl> Date: 27 Jul 88 09:12:55 GMT References: <1848@van-bc.UUCP> Organization: University of Nijmegen, The Netherlands. Lines: 18 From article <1848@van-bc.UUCP>, by sl@van-bc.UUCP (pri=-10 Stuart Lynne): [About self-modifying code] > A simple definition might be any program that cannot be compiled and run > in shared text mode (or equivalent for non Unix application environments). What about programs that write code into the data segment and then call it: int myproc[1000]; ..... generating s/m code (*((int (*)())myproc))(); /* and calling it */ We need a better definition I'm afraid -- Ge' Weijers, Informatics dept., Nijmegen University, the Netherlands UUCP: {uunet!,}mcvax!kunivv1!hobbit!ge