Implementation - OpCode


The following describes the code generated by the compiler before actually generating assembly code.

This code is very basic and is here to help implementing assemblers that can work for different processors without having to create multiple complex code generators that would directly translate the Ada code to assembly.

At this time, this is very preliminary and it may change very much by the time the code gets implemented.

The OpCode can be written in text format or in binary format. The binary format is similar (if I may say) to a compiled Java program. Each instruction is represented by a binary code and the operands follow immediately.