[squeak-dev] Anyone know the following about Slang?

David T. Lewis lewis at mail.msen.com
Sat Jul 5 19:24:53 UTC 2008


On Thu, Jul 03, 2008 at 05:25:51PM -0700, Eliot Miranda wrote:
> Hi All,
> 
>     does anyone know (or even better has anyone fixed it) how hard it is to
> make Slang inline methods that contain simple type declarations?

Over the last 2 weeks I've been playing around with replacing the memory access
macros in sqMemoryAccess.h with equivalent Smalltalk slang. Along the way I found
and fixed several slang issues that prevented inlining of methods with C
declarations, including the one related to case generation for the interpret()
loop. I'm in a rush right now (just happened to notice this thread) but I'll post
the results in a day or two when I have some free time.

btw, I do have the memory access methods working now, and with all the slang
inlining applied I'm withing about 20% of the performance of the interpreter
using C macros. It's surprising how many little bugs got flushed out in the
process, although I suspect there is not a great deal of demand for a VM that
features a 20% performance degradation ;)

Dave




More information about the Squeak-dev mailing list