[Q][Slang] Re: Using CCodeGenerator for something beyond Plugins

hannes.hirzel.squeaklist at bluewin.ch hannes.hirzel.squeaklist at bluewin.ch
Wed Mar 20 05:17:01 UTC 2002


Ned Konz <ned at bike-nomad.com> wrote:
> I'm interested in using the Slang support (CCodeGenerator/TParseNode and 
> friends) for emitting C for embedded systems.
> 
> However, the existing classes won't work for more general cases, where there 
> may be more than one object of a particular class. The Plugins convert 
> instance variables into globals and throw away self.
> 
> I was wondering whether anyone has come up with versions of these that differ 
> from the Plugin versions as follows:
> 
> * instance variables become structure members rather than globals
> * don't throw away self; instead pass as initial pointer argument
> 

This would then be: a compiler from a Smalltalk language subset to
object oriented C! Cool!


HJH



More information about the Squeak-dev mailing list