[Vm-dev] Translation weirdness

tim Rowledge tim at rowledge.org
Thu Mar 14 20:11:33 UTC 2013


On 14-03-2013, at 12:56 PM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 
> And note that the slow form just got faster for internal primitives.  The Cog slang now generates
> 
> #if !defined(SQUEAK_BUILTIN_PLUGIN)
> ...
> static sqInt (*isIntegerObject)(sqInt objectPointer);
> ...
> #else /* !defined(SQUEAK_BUILTIN_PLUGIN) */
> ...
> extern sqInt isIntegerObject(sqInt objectPointer)


This I like. I should try some similar tricks on RISC OS, where I can - with some fiddling - directly link external plugins to the vm at load time, saving the indirection cost even there.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Oscar Wilde: “Only the shallow know themselves.”





More information about the Vm-dev mailing list