Squeak -> Objective-C translation

Kevin Fisher kfisher at rim.net
Wed Apr 7 17:10:39 UTC 1999



Hi:

Forgive me if this is a dumb question but....will your translator allow me to,
say, make a program in Smalltalk and then translate it directly to Obj-C, or is
it just for VM generation?

Still, it sounds cool...


On 07-Apr-99 Marcel Weiher wrote:
> Hi folks,
> 
> I've finally started work on a version of the C-Translator capable  
> of producing Objective-C.  There are several applications I am  
> targeting:  (1) using Squeak to develop/prototype Objective-C code  
> (2a) using Objective-C as an intermediate plug-in language that is  
> semantically closer (2b) translating larger portions of Squeak libs  
> to dynamically bound native code and (3) making VM/Interpreter code  
> OO to allow for better integration, easier experimentation and  
> multiple interpreters.
> 
> I couldn't see a way to easily subclass the CCodeGenerator, so I've  
> been page-faulting code into a new extensible code-generator based on  
> FilterStreams that will then support subclasses for both Objective-C  
> and plain C generation.  As far as I can tell, these should take  
> less space than the current C-generation support due to some  
> refactorings and the FilterStream savings.
> 
> 
> Marcel





More information about the Squeak-dev mailing list