HI Jorge,

> Well, x64 sucks, no surprise here, but not as much as x86. Perhaps a
> good strategy here would be to use one of the C calling registers (%r9
> for instance) as a preloaded NIL. Restoring that value after calling C

Surely %r9 could be freed for general purposes. I don't remember if that
would solve any problem. Why do you think of NIL especially?

In fact, "normal" assembly already works well for position-independent
code (e.g. the shared 'ht' and 'ext' libraries are always built that
way). IIRC, there were nasty details with some core runtime code, but I
don't want to dig into that again.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to