https://gunkies.org/w/index.php?title=Pure_code&feed=atom&action=historyPure code - Revision history2024-03-29T10:13:14ZRevision history for this page on the wikiMediaWiki 1.30.0https://gunkies.org/w/index.php?title=Pure_code&diff=23735&oldid=prevJnc: This term is apparently no longer used, but...2021-06-12T12:46:30Z<p>This term is apparently no longer used, but...</p>
<p><b>New page</b></p><div>'''Pure code''' is a [[object code]] which is not [[self-modifying code|self-modifying]]. While the latter was very common in the earliest days, it is now effectively extinct, for a variety of reasons (including not interacting well with a number of [[Central Processing Unit|CPU]] optimizations), so essentially all object code is now pure code.<br />
<br />
The original motivation for pure code was to allow a number of [[process]]es in a [[time-sharing]] system which were running the same program to share a single copy of that object code in [[main memory]]. This also required the [[instruction]]s to be segregated (in the [[address space]]) from the data, since the latter would presumably differ among the instances of the program.<br />
<br />
Later on, when use of [[read-only memory|ROM]] for program storage became common (e.g. in [[embedded system]]s), it was obviously necessary for the code in the ROM to be pure code.<br />
<br />
{{semi-stub}}<br />
<br />
[[Category: Computer Basics]]</div>Jnc