This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: .EXE on mingw32 -- huge size
- From: "Jeff Sadowski" <jeff dot sadowski at gmail dot com>
- To: "Marco Trudel" <marco at mtsystems dot ch>
- Cc: funchlady <finchlady888 at hotmail dot com>, java at gcc dot gnu dot org
- Date: Thu, 20 Mar 2008 07:51:50 -0600
- Subject: Re: .EXE on mingw32 -- huge size
- References: <16177471.post@talk.nabble.com> <47E26211.60004@mtsystems.ch>
Is there a way to do dlls in windows with gcj
On Thu, Mar 20, 2008 at 7:09 AM, Marco Trudel <marco@mtsystems.ch> wrote:
> Hi Funchlady
>
>
> funchlady wrote:
> > Hi,
> >
> > I tried gcj to have executables. The good news is gcj works. The size of
> > .EXE file is too huge. For example,
> > class file of a program printing "Hello World" has 410 bytes, and the
> > executable has 12.7MB.
>
> That's not true. Although the class file might only have 410 bytes, you
> still need a runtime (JRE) of about 70mb to let it run. You can also
> dynamically link to libgcj (well, not on Windows), then your binaries
> will be only a couple of kb's.
>
>
> > "strip" cannot reduce the size, either. Is there any way to reduce the .EXE
> > size?
>
> The things I know are:
> - Pack the binary (e.g. UPX [1])
> - Exclude parts of the class library (See JNC [2])
>
>
> Marco
>
> [1] http://upx.sourceforge.net/
> [2] http://jnc.mtsystems.ch/
>
> >
> > Thank you.
>
>