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: ARM support


Geert Bevin writes:
 > > *shrug*  because I misremembered, or libgcj has grown considerably since I
 > > last tried it (at least java.nio is new)?
 > 
 > Ok, fair enough :-)
 > 
 > > $ size hello
 > >    text    data     bss     dec     hex filename
 > > 1841772  602412  111332 2555516  26fe7c hello
 > > 
 > > $ nm hello | grep 'class\$E$' | wc -l
 > >     602
 > > 
 > > Wow... 602 classes linked into such a small program.
 > 
 > It is mindblowing indeed ! The evident question I then get from someone
 > that has severe space limitations is : why does such a small program
 > need to have all these classes linked in. I would answer ... since much
 > of it is looked up with reflection. However you said reflection is
 > disabled, so now I'm confused :-/

If you do the final link with -Wl,Map,map you'll get a mapfile which
explains exactly why each file has been linked.

Andrew.


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