This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi,
I am using java on an embedded system, for that reason, memory is very low. This is one of the reasons why I am using statically linking. But this doesn't solve my problems, an unstripped "hello world" application still needs more than 20MB and stripping it only reduces it's size to about 9MB. I read about guys getting it down to 300-500kB,
but not how they managed that or this is because this messages were sent at the beginning of the 21st century and classpath had several classes missing this time. But I can't believe that I am really using this 9MB for simply printing out one single line to the console. What options can a additionally provide to the compiler to make it leave out unnecessary classes?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |