- Christopher
Oh, I meant that the default integer type in the source language being
arbitrary precision, not that CVML should only have one type of
integer.
> I am not sure that there are significant advantages to having
> arbitrary precision at the VM level.
>
> So now that I am thinking about it, perhaps I need some special
> opcodes for checking overflow/underflow status after integer
> operations?
That might be a good alternative, if it allows one to implement
arbitrary precision integers without the overhead of invocation etc.
On the other hand, how does the source language compiler know which
one of the intNN's would be more efficient to use? This will probably
vary depending on the platform the bytecode is run on.
That reminds me - how are you going to distinguish between values of
type int32 and int64 and object etc? I suppose you can't use a tag
since the integers use the full native precision.
How will languages call each other's libraries? If each language has
it's own representation of integers, strings, objects, it might be
hard to achieve this.