mingw32 gcj compile failure and possible patch

Frank Jacobs forkjake@yahoo.com
Wed Apr 3 10:38:00 GMT 2002


Thanks for sending out the patch! I finally got a GCJ
Linux->Win32 cross compiler working last night; it
almost brought tears to my eyes. ;-)

I have a question about executable size. When I tried
the standard Hello, World application, my resulting
executable was 10 MB. Any ideas as to why this may be?
I've read through the Cross Compiler FAQ, but couldn't
find any hints on this.

FYI, I configured and built the compiler using a
script posted by Adam in January. I modified it to
remove the patches in it, but it is basically the
same. See
http://gcc.gnu.org/ml/java/2002-01/msg00454.html for
Adam's original script.

Thanks a bunch -- I'm very much a beginner when it
comes to cross compilers, so my apologies if there is
an easy answer to this one.

--- Adam Megacz <gcj@lists.megacz.com> wrote:
> 
> Thank you for the patch! I took the opportunity to
> clean up the
> formatting on that function, and will apply it as
> shown below
> (branch+trunk) as soon as it finishes building.
> 
>   - a
> 
> Index: win32.h
>
===================================================================
> RCS file: /cvs/gcc/gcc/libjava/include/win32.h,v
> retrieving revision 1.3.8.2
> diff -u -r1.3.8.2 win32.h
> --- win32.h2002/03/10 18:00:041.3.8.2
> +++ win32.h2002/04/02 18:48:24
> @@ -21,7 +21,8 @@
>  extern void _Jv_platform_initialize (void);
>  extern jlong _Jv_platform_gettimeofday ();
> 
> -void _Jv_platform_close_on_exec (jint)
> +inline void
> +_Jv_platform_close_on_exec (jint)
>  {
>    // Ignore.
>  }
> 
> -- 
> The web is dead; long live the Internet.
> http://www.xwt.org/


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



More information about the Java mailing list