by ScottBurson · 9y ago · 0 comments
My understanding of the history here is that a lot of Sun people, notably Bill Joy, came from Berkeley, where Franz Lisp was also developed; and in the mid-1980s (the first SPARC came out in 1987) it still seemed possible that Lisp would be of great commercial importance. AFAIK, these instructions were dropped for the 64-bit SPARC.
But the point of posting this is to underscore that the use of "fixnums", tagged immediate integers, is well known. Not only, as Juho has helpfully uncovered, does it date back to the 1960s, but it had explicit support in what was once a major microprocessor architecture.
I'll digress a little further and add that I really wish Java had used the Lisp approach for arbitrary-precision integers. Then Joshua Bloch would never have had to write this blog post: [0], among many other benefits.
[0] https://research.googleblog.com/2006/06/extra-extra-read-all...
ld %rd, [%r1 - 1]
if %r1 didn't have a "01" tag, this would trap.Finally, SPARC reserved 8 registers for "global" use, that is registers what wouldn't be otherwise used by the compiler. Use was as simple as
register int *sp asm("%g3");
which was immensely valuable for VM implementations (and others).Unfortunately, the tagged add instructions didn't get much use; perhaps SPARC wasn't a big enough base to justify designing around it.
https://compilers.iecc.com/comparch/article/91-04-082
> Yes, the tagged arithmetic instructions were put in the SPARC architecture for Lucid Common Lisp.
[1] https://books.google.co.uk/books/about/The_design_and_evalua... [2] https://en.wikipedia.org/wiki/Rice_Institute_Computer
Thanks for sharing the experience.
Ada was also another example of having Ada Machines, that is how Rational was created.