We can now have up to 128 globals. The number is arbitrary, but could
commit079951a1573b33b652eaf55975df8dc73dea1ade
authorVincent St-Amour <stamourv@dino11.iro.umontreal.ca>
Fri, 25 Jul 2008 21:21:54 +0000 (25 17:21 -0400)
committerVincent St-Amour <stamourv@dino11.iro.umontreal.ca>
Fri, 25 Jul 2008 21:21:54 +0000 (25 17:21 -0400)
tree49bb85b45ed4e0a925bb7d769c59349b565bb993
parentd6a75da463bea66e209544cdfbfc7050a1ce4f83
We can now have up to 128 globals. The number is arbitrary, but could
go up to 256, since we have a byte to encode them. For now, their
number is statically determined, which can cause wasted space if not
all are used. We'll change this to be dynamic, the number of globals
will be encoded in the beginning of the bytecode, as is the case with
constants and globals will simply occupy the beginning of ordinary ram.
picobit-vm.c
picobit.scm