Article View: comp.arch
Article #66Re: Optimization by programmers
From: Scott Lurndal
Date: Mon, 12 Oct 2026 19:21
Date: Mon, 12 Oct 2026 19:21
25 lines
2282 bytes
2282 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes: > > >> >> However, when a constant is passed to a function as an argument, >> clearly that constant should be treated as an *expression*, not as a >> variable. So you copy it to a temporary, and pass the address of the >> temporary to the function. > >And you think the language designers in 1956 could have figured that out ??? > For the most part, everything was in memory in 1956 (aside from an accumulator). The constant would likely have been either in the instruction stream itself (e.g. burroughs medium systems supported 1 to 6 digit constants in the A operand field for most instructions) or in memory. The electrodata 220 (1958) had: "A" register (10 digits plus sign digit) First operand "R" register (10 digits plus sign digit) (extension of A register for product/quotient) "D" register (10 digits plus sign digit) Second operand "B" regsiter (4 digits) Index register "C" register (10 digits) Current instruction "P" register (4 digits) Program Counter
Technical Details
Message-ID:
<2razS.66532$u0_b.16513@fx03.iad>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx03.iad.POSTED!not-for-mailReferences:
<1177fdi$26ea4$1@dont-email.me> <11a3ofn$2ak3s$1@dont-email.me> <11a5hd5$4qb$1@reader2.panix.com> <11a5lqo$2v5bq$1@dont-email.me> <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me> <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <6acd0635.21804140@news.eternal-september.org> <1791830400-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx03.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: Optimization by programmers Newsgroups: comp.arch References: <1177fdi$26ea4$1@dont-email.me> <11a3ofn$2ak3s$1@dont-email.me> <11a5hd5$4qb$1@reader2.panix.com> <11a5lqo$2v5bq$1@dont-email.me> <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me> <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <6acd0635.21804140@news.eternal-september.org> <1791830400-5857@newsgrouper.org> Lines: 25 Message-ID: <2razS.66532$u0_b.16513@fx03.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Mon, 12 Oct 2026 19:21:34 UTC Organization: UsenetServer - www.usenetserver.com Date: Mon, 12 Oct 2026 19:21:34 GMT X-Received-Bytes: 2050