[BUG][VM] 3.6-beta11 compile problem

Tim Rowledge tim at sumeru.stanford.edu
Sat Sep 6 18:10:33 UTC 2003


Ian Piumarta <ian.piumarta at inria.fr> wrote:

> On Sat, 6 Sep 2003, Joshua 'Schwa' Gargus wrote:
> 
> > I'm running into problems compiling a VM from the 3.6-beta11 sources
> > with my own generated sources/plugins from the latest 3.6 image and
> > VMMaker.
I was about to ask why the global struct stuff was being used for a
unix VM  but from the sound of Ian's reply it seems he's decided to use
it. The 'foo' stuff is the big global array that can be used to hold
most of the global variables; on many machines this lets the compiler
keep a single pointer around and index of it. For Acorn machines I keep
that pointer in a global register and get a 30% speedup :-)

> 
> The problem is that we don't yet have a principled way of communicating
> VMM configuration settings to source code outside of interp.c.  (Although
> in this particular case a solution would be pretty easy to come up with --
> since it affects a file included directly by interp.c.  I'll send
> something to TPR for him to include in VMM that will allow things like
> this to be detected by the header files when necessary.)
Perhaps a generated .h file would help here. I suppose for soe things
it might be good to generate a makefile fragment as well/ instead.



tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- Life by Norman Rockwell, but screenplay by Stephen King.



More information about the Squeak-dev mailing list