FIXP allocations for simple looping? #2681
Replies: 3 comments 3 replies
|
Notice that the 34466 |
|
In the Medley Interlisp Common Lisp architecture, there isn't much it can do with type declarations. The original opcodes PLUS MINUS TIMES QUOTIENT and IPLUS ITIMES IQUOTIENT IMINUS etc. assume the stack contains legitimate pointers. There are some "unboxed arithmetic" subrs and opcodes that were added later and quite possibly some ways to use optimizers?? |
|
if you really want to avoid boxing, I can think of two ways
(LET ((A 0))
|

Notice that the 34466
FIXPallocated is just about exactly the difference between the 100000 value ofNandMAX.SMALLP(65535). Since there's no automatic determination thatAcould/should be an unboxed integer, it must be a generic value cell, soFIXPfor any value greater thanMAX.SMALLP.