Re:TruffleC: A C implementation on top of JVM (2014)
by dzaima on Friday August 12, 2022 @06:20AM
(#32436495)
the JVM bytecode does not have any memory address type. Just various width integers & floats, and references to managed heap objects. Arbitrary pointers would have to be done with 'long's one way or another.
[ Parent
| on HN ]
Re:TruffleC: A C implementation on top of JVM (2014)
by rschatz on Friday August 12, 2022 @06:27AM
(#32436540)
You can still use pointers. It's a bit hidden, but there are things like `Unsafe.allocateMemory`, `Unsafe.getByte` and so on ;)
Re:TruffleC: A C implementation on top of JVM (2014)
by dzaima on Friday August 12, 2022 @06:32AM
(#32436575)
right; at which point the subset of jvm you're using is a subset of any other IR/VM, the 'j' in 'jvm' being only useful as an implementation/runtime.