How to compile for a low-memory device?
After a lot of trial-and-error, I managed to create an "executable" for my target device (based on M4). Unfortunatelly, it only have 1mb of memory.
Porting javacall, I could workaround javacall_heap_alloc by using a smaller size. It works, but I receive a "Could not allocate VM heap, try smaller HeapCapacity" from cldc (BTW: I found that ObjectHeap::create try to allocate about 4M).
How can I change this HeapCapacity? I found a hard-coded "=HeapCapacity16M" on jvm.make. Does I really need to change the common jvm.make?