[bitc-dev] Random thought about closures
Jonathan S. Shapiro
shap at eros-os.com
Sat Apr 25 10:01:17 EDT 2009
A blindingly obvious thought just occurred to me, and I want to write it
down before I forget: there is no reason that procedures expecting a closure
pointer need to honor the standard calling convention.
Such a procedure can only be called in two ways:
1. Through a statically resolved reference from a bitc call site.
2. From it's trampoline, which is actuall a degenerate case of (2).
So what this means is that the entire calling convention problem for
closures is entirely a consequence of generating C code, and the whole issue
will go away when native code generation is used.
Yet *another* reason not to generate C code for this kind of thing. Sigh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/bitc-dev/attachments/20090425/efbe0b09/attachment.html
More information about the bitc-dev
mailing list