> > Most of them (your posts) are checking out to be quite
> > accurate, informative and very helpful.
> > Its just the ones that have speculations about the operation
> > of the compiler that I feel need clarification.
> And I note that some of your clarifications need clarifying. Like
> the claim that return(value) works in the V5 compiler; it doesn't,
> but you say it does?
Yes. I in fact do. I ran a test before I posted.
Here is the program for Ver 5:
--------------------------
byte a;
sub void main(void){
a = foo;
}
function byte foo(void){
a = 1;
return(6);
}
--------------------------
Here is a subset of the instructions generated by the ver 5 compiler:
--------------------------
----:<@Call#1-Exit>: After foo is called.....
0030:111 '->foo This is where 'a' gets assigned to 'foo'
0031:247 'GetVariable
0032:110 '->a
0033:246 'Setvariable
0034:129 'Branch
----:<main-Exit>:
----:<foo-Begin>:
0035:001 'Number This is where 'a' gets set to 1.
0036:110 '->a
0037:246 'Setvariable
0038:006 'Number This is where foo gets set to 6.
0039:111 '->foo
0040:194 'Let Value
0041:129 'Branch Return from the function....
----:<foo-Exit>:
--------------------------
Works just like it should.
Scott Savage
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment