[M0] How to store stuff in the caller's CF?
kjstol
parrotcode at gmail.com
Wed Jun 13 16:35:45 UTC 2012
hi there,
I'm trying to return values from a called subroutine to the caller.
Effectively:
int main() {
int i = foo();
print(i); // should print 42
}
int foo() {
return 42;
}
I'm trying to set the value 42 in a register in the parent call frame
(PCF). However, not much luck.
The more I'm trying to understand it, the less I do :-)
Does any of the M0 folks have some insights to this?
(I know that the calling conventions have not been figured out, but
I'm just trying to Get it Work. figuring out details can be done
later, but getting it to work is the first step.)
thanks!
kjs
More information about the parrot-dev
mailing list