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]

Re: gcj cross-compilation


>>>>> "Nathan" == Nathan M <ngmlinux@gmail.com> writes:

Nathan> Yes I just noticed that.  I just made a staticly linked helloworld and
Nathan> it's approximately 30MB in size.  I have 128MB of total flash so a
Nathan> HelloWorld will fit, not sure about my other app(s) though.

I read on the libstdc++ list that Alan Modra is resurrecting ld's
--gc-sections code (look for the "Joy and bunny rabbits!" thread from
this month in the list archives).  While this code never worked for
gcj, I think it ought to be possible for someone to make it work.  I
suspect this would let you reduce the minimum statically-linked
application size, as it would let you remove all unused methods,
including virtual methods, from your image.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]