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

Igor Stasenko siguctua at gmail.com
Sat Jul 5 19:56:19 UTC 2008


2008/7/5 David T. Lewis <lewis at mail.msen.com>:
> 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 ;)
>

Is there chance that degradation because you broken gnuifier step?
I experienced same degradation, when gnuifier fails to find and
replace text in interp.c,
so gnu-interp.c is just a copy of interp.c w/o modifications.

If not, then we should blame GCC for being incapable to inline simple things :)


> Dave
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list