🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #2540

Re: Self-modifying code

#2540
From: Frederic W. Brehm
Date: Thu, 12 Oct 1989 15:02
13 lines
1100 bytes
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
Technical Details
Message-ID: <16542@siemens.siemens.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!siemens!demon!fwb
References: <1080@mipos3.intel.com> <48682@ricerca.UUCP> <236@bbxsda.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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