Dies ist eine alte Version des Dokuments!


Accessing the hardware

Java was developed as a save language. That is 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.java (US stand for unsafe). Wenn methods of this class are used the code generator inserts machine code accordingly.
By using US.java 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 in a

Low level methods