摘要 |
PROBLEM TO BE SOLVED: To attain an efficient garbage collection processing with supporting control of allocation of dynamic storage regions by converting programs optimally. SOLUTION: A program conversion device and a virtual machine respectively comprise a search means 104 of image data acquiring code, a size analysis means 109 of image data available region, a conversion means 105 of image data acquiring code and an insertion means 110 of image data expansion/release code. The virtual machine acquires compressed data of images by acquiring codes of image data, expands the compressed data by expanding codes of the image data, and releases storage region storing expanding data of objects by releasing codes of the expanding data. Accordingly, while storing only the compressed data in a heap region, when required only for graphics-drawing, the image data as much as possible is acquired as the expanding data into the heap region and the number of occurrences of the garbage collection processing is suppressed, so that it becomes possible to attain a speedup of running time of an application.
|