Login  Register

RE: Dynamically choosing a register

Posted by Bryce Kampjes on Jul 26, 2007; 11:43am
URL: https://forum.world.st/Dynamically-choosing-a-register-tp133493p133498.html


Do you mean for the cond to be evaluated at compile time in the
following?

   (def store-to-register (reg val)
  (cond (reg)
         ((number-that-means-eax) (store eax val)

If so you could just generate:
   (mov t1 eax)

Then the register allocator will try to allocate t1 in eax
and remove that move.

Bryce
_______________________________________________
Exupery mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/exupery