3 ms·
Actually this was new in ... Watcom C++ for DOS? Or even earlier.
by nottorp 5y ago
Actually this was new in ... Watcom C++ for DOS? Or even earlier.
- gumby 5y agoIt was the calling convention of MACLISP in the 60s and nobody seemed to describe it as exotic.
- tzs 5y agoMACLISP had another register optimization that was possible on the PDP-6 and the earlier models of the PDP-10 (the ones with the KA-10 CPU). Those machines had an address space consisting of 256k 36-bit words. The registers shared that address space with core memory. Addresses 0-15 of the 18-bit address space referred to the registers, and addresses above that referred to core. The core memory had memory for words 0-16 but it was never used because the registers overlaid it. In fact if you wanted to save a little money your could order your PDP-6 or your KA-10 PDP-10 without registers and then register accesses would go the words 0-15 of core. This worked both ways. If you put an address in 0-15 in an 18-bit memory address field it would access registers. In particular if you loaded an address in 0-15 into the program counter it would execute code out of the registers. MACLISP and others would copy some short time-critical loops to the registers and run them there for speed.