a Cross Development Platform for Java

User Tools

Site Tools


Accessing the Hardware

Java was developed as a save language. It does not allow direct access and manipulation of absolute memory locations. Nevertheless this is essential for embedded programming. We therefore include this possibility by the use a special Java class (US stand for unsafe). Wenn methods of this class are used the code generator inserts machine code accordingly.
By using you can

  • read from absolute memory locations (1, 2, 4, 8 bytes)
  • write to absolute memory locations (1, 2, 4, 8 bytes)
  • test a bit at an absolute memory location
  • read and write directly to machine registers (GPRs, FPRs, SPRs)
  • directly insert machine code
  • get the address of a static method at compile time
  • enable the use of floats for exception routines

The API of can be found under: API

crosscompiler/hardware.txt · Last modified: 2016/02/25 13:33 (external edit)