size reduction

Hendrik Schreiber hendriks@nexthaus.com
Fri Feb 21 19:11:00 GMT 2003


Hi Folks,

I am currently evaluating gcj. We are developing java software for small devices and consider switching to gcj instead of deploying a vm to the device. One of the biggest problems with the small device VMs is size... they are simply to big. However, I gave gcj a shot and compiled a simple HelloWorld on Win2000 with Cygwin, which produced a 2.1mb executeable with default parameters.
I am sure that the size of this can be reduced, but unfortunately I don't know a lot about gcc. Can someone please point me at ways to reduce the size? What can I expect as the minimum size for a 'standalone' executable?

Thanks - your help is appreciated!

-hendrik



More information about the Java mailing list