C Code Generation

Edward P Luwish eluwish at qwest.com
Tue Jan 23 16:34:38 UTC 2001


Can anyone describe the subset?  For those of us who need to dink with the
CCodeGenerator, it would be helpful to have, if not a formal syntax and
semantics, at least some examples of what can NOT currently be translated
(the Interpreter class has sufficient examples of what CAN).

Ed

Tim Rowledge wrote:

> Sorry, but as far as the CCdoeGenerator is concerned, the practical
> answer is "you can't do that".
>
> The CCodeGenerator classes are there to allow translation of a very
> limited subset of Smalltalk suitable for creating the VM code. You don't
> get normal message sending behaviour, classes, metaclasses, any of the
> useful stuff, just very simple mapping of a rather C-like style of
> Smaltalk. Take a look at some of the classes that are translated!
>
> On the other hand, you can certainly hope to make a single file with the
> VM and image together so that you can treat it as an exe; Ian added a
> version of that to the unix build stuff recently, I feel sure you ought
> to be able to make the image be in the resource fork of the Mac VM,
> Acorn has always had the facility and soon.
>
> tim
> --
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> Adding manpower to a late software project makes it later.  - Brook





More information about the Squeak-dev mailing list