Direct hardware access by RTSJ-class "RawMemoryAccess"

Rene Bartsch ML at Bartschnet.de
Wed Dec 9 18:42:21 PST 2009


Hi,

first, I'm new to the OpenJDK-MLs, so a "Hello" to all! :)

JAVA has the advantage programmers don't have to mess around with memory management (especially
pointers) which improves stability and resistence against hacking of JAVA programs a lot compared
with e.g. C/C++.

In my opinion this is very good, but there is one disadvantage:

Programming hardware like actuators and sensors is very complicated. So I suggest to implement a
class which allows direct access to hardware addresses. To have a solution as compatible as
possible I suggest to implement the "RawMemoryAccess"-class from the RTSJ-specification in the
OpenJDK JVM.


To make sure the "RawMemoryAccess"-class isn't used to manipulate memory management, that class
shall only be usable in some kind of security-context for hardware-driver programming.

That way hardware-drivers with low platform-dependency can be easily developed in JAVA.


Best regards,

Renne




More information about the jdk7-dev mailing list