[Vm-dev] Question about primitives
John M McIntosh
johnmci at smalltalkconsulting.com
Mon Feb 8 19:04:12 UTC 2010
Well you can VMMaker(er) up all the C code for building an interpreter, but you'll get a bunch of missing procedures, those are platform specific support api.
For porting hopefully I've identified all the platform specific code here.
This excludes things like unix(like) file system and socket support. Usually you find the platform has support for unix sockets and file system, so the common code is used.
On 2010-02-08, at 9:42 AM, Mariano Martinez Peck wrote:
> Hi folks. Disusing with a friend, he asked me if Squeak was completely written in itself (actually, SLANG). I think (I am not sure) that some parts of the VM as Interpreter, ObjectMemory, and most primitives are written in SLANG and then using VMMaker I can convert from that to C. Ok.....but...I think I heard that there are primitives that are directly written in C (not SLANG, no translation). Is this true ?
> If true, how can be that addressed ? where is the C code of that? because, I take VMMaker, I convert to C, then compile, install and I have a working VM. So...that C code must come somewhere...where is it ? how can I know if a primitive is written in SLANG or directly in C?
> I hope someone can help this newbie :)
> Thanks in advance,
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev