This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: reflection support?
- From: Marilen Corciovei <marilen dot corciovei at nemesisit dot ro>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: java at gcc dot gnu dot org
- Date: 11 Apr 2003 10:33:56 +0300
- Subject: Re: reflection support?
- Organization:
- References: <Pine.LNX.4.44.0304102258280.936-100000@ops2.one-point.com>
On Fri, 2003-04-11 at 06:02, Jeff Sturm wrote:
> On 11 Apr 2003, Marilen Corciovei wrote:
> > Well, in the end I got my engine in a 4.6Mb
> > exe file. What I did not realized is that since I used a lot reflection
> > nothing seems to work except some error messages.
>
> The hazards of reflection and static linking (as appears to be your
> situation) is that needed classes may not be linked into the final
> executable if they aren't directly referenced in code.
>
> How are you linking your final executable? If you are using archive (.a)
> files, you can place -Wl,--whole-archive .... -Wl,--no-whole-archive
> around libraries you need to link in their entirety.
Thank you, this solved indeed the problem. Sure the result is now larger 8M after strip (where are the times when you could do everything in a few kb :)
Len
> The downside is that your executable may end up significantly larger.
>
> Jeff
Marilen Aretius Corciovei
Technical Manager, Nemesis IT
marilen dot corciovei at nemesisit dot ro
+40-721253015