aspose file tools*
The moose likes Java Micro Edition and the fly likes Heap, Data space and Prog space ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Heap, Data space and Prog space !" Watch "Heap, Data space and Prog space !" New topic
Author

Heap, Data space and Prog space !

Sanjay Mistry
Greenhorn

Joined: Jun 22, 2001
Posts: 24
I have i85s Motorola J2ME compatible phone. It says something like,
Heap size 256K
Data space: 219K free
Prog space: 99K free.
Can anyone help me to understand, what is this Heap size, Data space and Prog space ?
I would appreciated if it someone can derive the analogy with regular PC !
Thanks.
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
I haven't worked with those phones yet, but I would guess, based on my general Java and J2ME knowledge, that...
Heap Space:
This is just like the regular Java heap. It tells you how much room your program has in which to run. This includes memory for instance of all classes, for exmaple, including Sun's classes.
Program Space:
How much room there is for installed programs (running out of this is like running out of room on your hard drive).
Data Space:
This is the one I'm least sure of. I would guess it's room for RMS files. (Again, like your hard drive, only here it's partitioned into programs and data.)

--Mark
Sanjay Mistry
Greenhorn

Joined: Jun 22, 2001
Posts: 24
Well, I got answer from motorola site.
it says,
Data: refers to the memory used to store application data, such as image files.
Program: refers to the memory used to store application code.
 
Don't get me started about those stupid light bulbs.
 
subject: Heap, Data space and Prog space !