proj-jasper-jasperAssemblyNotes2

Difference between revision 1 and current revision

No diff available.

--

so, Jasper Assembly may be fixed-length, not for efficiency, but for ease of implementation. Code density is not a concern because we expect that a compiler will compile Jasper Assembly to a target system. We do, however, wish to preserve 'intent' so as to aid optimizations on a target system.

we'll probably have arbitrary word size, and allow the storage of complex data structures in one 'memory location'.

We might stick to things addressable by 1,2,4,16 bits. When to use what (um, this is kinda obvious..):

ok, to add some meat to that:

note that, in order to capture enough 'basis sets of primitives' to preserve intent across various computation paradigms, we want more than 16 opcodes. So, according to the above scheme (which conspicuously omits 8 bits/256), we should have the opcode field be 16 bits. Note that this gives us room for 'custom opcodes', and for using custom opcodes for subroutines, Forth-like.

PL book: Stack Machines