Well, this adds levels of complexity to VM, by adding hard tricks, like controlling C heap allocations (not VM heap, controlled by GC).
On 23/09/2007, Tony Garnock-Jones tonyg@lshift.net wrote:
Brent Pinkney wrote:
- VisualAge's decision to use C-syle call stacks instead of proper
objects prevented the use of continuations.
Just to nitpick, continuations can be perfectly well implemented even in C (I have done so before, using setjmp/longjmp and stack copying, based on a technique I saw used in Aubrey Jaffer's SCM interpreter), so it seems to me that the problem is perhaps more one of a lack of complete *reflective access* to the C-style stack than anything to do with the implementation in the VM itself.
Of course, I haven't investigated VisualAge for myself, so I could well be off base here.
Regards, Tony