Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!siemens!demon!fwb From: fwb@demon.siemens.com (Frederic W. Brehm) Newsgroups: comp.arch Subject: Re: Self-modifying code Message-ID: <16542@siemens.siemens.com> Date: 12 Oct 89 15:02:13 GMT References: <1080@mipos3.intel.com> <48682@ricerca.UUCP> <236@bbxsda.UUCP> Sender: news@siemens.siemens.com Reply-To: fwb@demon.UUCP (Frederic W. Brehm) Organization: Siemens Corporate Research Lines: 13 Compiler generated self-modifying code: YES. When I was a graduate student (in ancient times: 1974) I had occasion to look at the generated code for both a CDC 6000-series Fortran compiler and an IBM 370-series COBOL compiler. Both compilers used the same technique for inserting argument addresses in subroutines (did you know COBOL has subroutines?!!!). The compilers generated code that copied the argument addresses from the argument list into the instruction address fields. Fred -- Frederic W. Brehm Siemens Corporate Research Princeton, NJ fwb@demon.siemens.com -or- princeton!siemens!demon!fwb