I'm experiencing some issues regarding my javabuilder-compiled matlab-code. My application is basically split up like this:
- GUI: Java
- Calculations: Matlab
The main problem is that when compiling my matlab-code with the javabuilder in Matlab (R17, 2007a), I have less memory available than I have when I compile the same code to an exe-file. I have confirmed this with the "feature('memstats')" function. My arrays are typically of size orders 1000000 x 25, and this is not initializable when run from java, as the largest contiguous memory space is too small (the biggest one is about 65MB, as opposed to about 1200MB when run as a ML exe-file). My rig is running Windows XP Professional x86 and has 4GB of memory.
I've tried these two matlab/c-compilators (set up with the "mbuild -setup" command in the matlab command line):
- Lcc-win32 C 2.4.1
- Microsoft Visual C++ 6.0 (also with the /LARGEADDRESSAWARE flag, which does not seem to help at all)
Any suggestions?