From: Andrew Haley <aph@redhat.com>
To: abhishek desai <abhi00@gmail.com>
Cc: java@gcc.gnu.org
Subject: Re: gcj compilation size.
Date: Mon, 03 Aug 2009 11:26:00 -0000 [thread overview]
Message-ID: <4A76C94E.9030602@redhat.com> (raw)
In-Reply-To: <898285d30908030414sa2ff105yccd185ecea9e5ca5@mail.gmail.com>
abhishek desai wrote:
> I have a simple HelloWorld.java file which prints data to screen.
>
> When compiled to a .class file the size is 469 bytes. When the same
> file when compiled to an object file, the size is 1420 bytes. The
> difference is much bigger if there are lots of java files. Can anyone
> please explain why there is such a big difference between the two
> sizes
Java bytecode is very compact. You can see why by reading the Java VM
specification.
> and is there a way to reduce the size of the compiled object
> file ?
Sometimes strip can help.
Andrew.
prev parent reply other threads:[~2009-08-03 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 11:14 abhishek desai
2009-08-03 11:26 ` Andrew Haley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A76C94E.9030602@redhat.com \
--to=aph@redhat.com \
--cc=abhi00@gmail.com \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).