maximum memory for gcj-compiled executable?

Per Bothner per@bothner.com
Mon Mar 24 07:01:00 GMT 2003


Ranjit Mathew wrote:
>>libjava/prims.cc/_Jv_SetMaximumHeapSize() and _Jv_SetInitialHeapSize() would
>>be interesting, but they have to be called before calling _Jv_RunMain(). Are
>>they connected in one way or another to gcj compilation options?
>>>>By the way, is there anything like a "gcj.c" entry point into the compiler?
>>What is the entry point for the "gcj" executable (the place where
>>commandline options are parsed)?
>>> You might want to see the output of "jvgenmain" ($GCC\lib\gcc-lib\mingw323円.3),
> which is used by GCJ to generate a "normal" main( ) from the class
> that you indicate as the main class via the "--main=Foo" option.

I think Erik asked about the "main" for the compiler itself. Your
response is about the "main" for the compiled class.
To answer Eruk's question: The compiler command line is processed
multiple times. First it is processed by the gcc "driver" program,
which is builtr using gcc.c and java/jvspec.c. That then invokes
jc1, where it is processed in toplev.c, but it call various
helper routines.
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /