29 Apr 04:25
Some notes concening VM :)
From: sig <siguctua <at> gmail.com>
Subject: Some notes concening VM :)
Newsgroups: gmane.comp.lang.slate.general
Date: 2007-04-29 02:25:31 GMT
Subject: Some notes concening VM :)
Newsgroups: gmane.comp.lang.slate.general
Date: 2007-04-29 02:25:31 GMT
Hello , i'm new here and have particular interests in developping a Slate VM. I didn't decided yet if i will participate in this project in nearest future, so i just want to discuss some of my ideas with you for now. Concerning OMM (object memory model) and stack organization. I'm refer to tables which you can see on this page: http://slate.tunes.org/doc/mobius/ 5.1.1 stack format. Table 3. Block format. I see little reason why selectors must be kept apart from literals. The only place i see where they handled differently is at interpretation stage to use different opcode 'Load Selector'. If there's no extra processing except that, we can merge selectors with literals slot and remove an opcode 'Load Selector'. This is the code that shows that they handled in same manner.. static INLINE void PSInterpreter_loadLiteral_(struct Interpreter * i, unsigned long int n) { PSInterpreter_stackPush_(i, (((i -> method) -> literals) -> elements)[n]); } static INLINE void PSInterpreter_loadSelector_(struct Interpreter * i, unsigned long int n) { PSInterpreter_stackPush_(i, (((i -> method) -> selectors) -> elements)[n]);(Continue reading)
RSS Feed