gcj.texi

来自「理解和实践操作系统的一本好书」· TEXI 代码 · 共 1,908 行 · 第 1/5 页

TEXI
1,908
字号
@itemx -o @var{file}These options as the same as the corresponding @command{gcj} options.@item --helpPrint help, then exit.@item --versionPrint version number, then exit.@item -v, --verbosePrint extra information while running.Implies @code{--print-constants}.@end table@c man end@node Invoking gij@chapter Invoking gij@c man title gij GNU interpreter for Java bytecode@ignore@c man begin SYNOPSIS gijgij [@option{OPTION}] @dots{} @var{JARFILE} [@var{ARGS}@dots{}]gij [@option{-jar}] [@option{OPTION}] @dots{} @var{CLASS} [@var{ARGS}@dots{}]  [@option{-cp} @var{path}] [@option{-classpath} @var{path}]  [@option{-D}@var{name}[=@var{value}]@dots{}]  [@option{-ms=}@var{number}] [@option{-mx=}@var{number}]  [@option{-X@var{argument}}] [@option{-verbose}] [@option{-verbose:class}]  [@option{--showversion}] [@option{--version}] [@option{--help}][@option{-?}]@c man end@c man begin SEEALSO gijgcc(1), gcj(1), gcjh(1), jcf-dump(1), gfdl(7),and the Info entries for @file{gcj} and @file{gcc}.@c man end@end ignore@c man begin DESCRIPTION gij@code{gij} is a Java bytecode interpreter included with @code{libgcj}.@code{gij} is not available on every platform; porting it requires asmall amount of assembly programming which has not been done for all thetargets supported by @command{gcj}.The primary argument to @code{gij} is the name of a class or, with@code{-jar}, a jar file.  Options before this argument are interpretedby @code{gij}; remaining options are passed to the interpreted program.If a class name is specified and this class does not have a @code{main}method with the appropriate signature (a @code{static void} method witha @code{String[]} as its sole argument), then @code{gij} will print anerror and exit.If a jar file is specified then @code{gij} will use information in it todetermine which class' @code{main} method will be invoked.@code{gij} will invoke the @code{main} method with all the remainingcommand-line options.Note that @code{gij} is not limited to interpreting code.  Because@code{libgcj} includes a class loader which can dynamically load sharedobjects, it is possible to give @code{gij} the name of a class which hasbeen compiled and put into a shared library on the class path.@c man end@c man begin OPTIONS gij@table @gcctabopt@item -cp @var{path}@itemx -classpath @var{path}Set the initial class path.  The class path is used for findingclass and resource files.  If specified, this option overrides the@code{CLASSPATH} environment variable.  Note that this option isignored if @code{-jar} is used.@item -D@var{name}[=@var{value}]This defines a system property named @var{name} with value @var{value}.If @var{value} is not specified then it defaults to the empty string.These system properties are initialized at the program's startup and canbe retrieved at runtime using the @code{java.lang.System.getProperty}method.@item -ms=@var{number}Equivalent to @code{-Xms}.@item -mx=@var{number}Equivalent to @code{-Xmx}.@item -noverifyDo not verify compliance of bytecode with the VM specification. In addition,this option disables type verification which is otherwise performed on BC-ABIcompiled code.@item -X@itemx -X@var{argument}Supplying @code{-X} by itself will cause @code{gij} to list all thesupported @code{-X} options.  Currently these options are supported:@table @gcctabopt@item -Xms@var{size}Set the initial heap size.@item -Xmx@var{size}Set the maximum heap size.@item -Xss@var{size}Set the thread stack size.@end tableUnrecognized @code{-X} options are ignored, for compatibility withother runtimes.@item -jarThis indicates that the name passed to @code{gij} should be interpretedas the name of a jar file, not a class.@item --help@itemx -?Print help, then exit.@item --showversionPrint version number and continue.@item --fullversionPrint detailed version information, then exit.@item --versionPrint version number, then exit.@item -verbose@itemx -verbose:classEach time a class is initialized, print a short message on standard error.@end table@code{gij} also recognizes and ignores the following options, forcompatibility with existing application launch scripts:@code{-client}, @code{-server}, @code{-hotspot}, @code{-jrockit},@code{-agentlib}, @code{-agentpath}, @code{-debug}, @code{-d32},@code{-d64}, @code{-javaagent}, @code{-noclassgc}, @code{-verify},and @code{-verifyremote}.@c man end@node Invoking gcj-dbtool@chapter Invoking gcj-dbtool.@c man title gcj-dbtool Manipulate class file mapping databases for libgcj@ignore@c man begin SYNOPSIS gcj-dbtoolgcj-dbtool @option{OPTION} @var{DBFILE} [@option{MORE}] @dots{}gcj-dbtool [@option{-0}] [@option{-}] [@option{-n}] [@option{-a}] [@option{-f}]  [@option{-t}] [@option{-l}] [@option{-p} [@var{LIBDIR}]]  [@option{-v}] [@option{-m}] [@option{--version}] [@option{--help}]@c man end@c man begin SEEALSO gijgcc(1), gcj(1), gcjh(1), jcf-dump(1), gfdl(7),and the Info entries for @file{gcj} and @file{gcc}.@c man end@end ignore@c man begin DESCRIPTION gcj-dbtool@code{gcj-dbtool} is a tool for creating and manipulating class filemapping databases.  @code{libgcj} can use these databases to find ashared library corresponding to the bytecode representation of aclass.  This functionality is useful for ahead-of-time compilation ofa program that has no knowledge of @code{gcj}.@code{gcj-dbtool} works best if all the jar files added to it arecompiled using @code{-findirect-dispatch}.Note that @code{gcj-dbtool} is currently available as ``previewtechnology''.  We believe it is a reasonable way to allowapplication-transparent ahead-of-time compilation, but this is anunexplored area.  We welcome your comments.@c man end@c man begin OPTIONS gcj-dbtool@table @gcctabopt@item -n @var{DBFILE} [@var{SIZE}]This creates a new database.  Currently, databases cannot be resized;you can choose a larger initial size if desired.  The default size is32,749.@item -a @var{DBFILE} @var{JARFILE} @var{LIB}@itemx -f @var{DBFILE} @var{JARFILE} @var{LIB}This adds a jar file to the database.  For each class file in the jar,a cryptographic signature of the bytecode representation of the classis recorded in the database.  At runtime, a class is looked up by itssignature and the compiled form of the class is looked for in thecorresponding shared library.  The @option{-a} option will verifythat @var{LIB} exists before adding it to the database; @option{-f}skips this check.@item [@option{-}][@option{-0}] -m @var{DBFILE} @var{DBFILE},[@var{DBFILE}]Merge a number of databases.  The output database overwrites anyexisting database.  To add databases into an existing database,include the destination in the list of sources.If @option{-} or @option{-0} are used, the list of files to read istaken from standard input instead of the command line.  For@option{-0}, Input filenames are terminated by a null characterinstead of by whitespace.  Useful when arguments might contain whitespace.  The GNU find -print0 option produces input suitable for thismode.@item -t @var{DBFILE}Test a database.@item -l @var{DBFILE}List the contents of a database.@item -pPrint the name of the default database.  If there is no defaultdatabase, this prints a blank line.  If @var{LIBDIR} is specified, useit instead of the default library directory component of the databasename.@item --helpPrint a help message, then exit.@item --version@itemx -vPrint version information, then exit.@end table@c man end@node Invoking jv-convert@chapter Invoking jv-convert@c man title jv-convert Convert file from one encoding to another@c man begin SYNOPSIS jv-convert@command{jv-convert} [@option{OPTION}] @dots{} [@var{INPUTFILE} [@var{OUTPUTFILE}]]@ignore  [@option{--encoding} @var{name}]  [@option{--from} @var{name}]  [@option{--to} @var{name}]  [@option{-i} @var{file}] [@option{-o} @var{file}]  [@option{--reverse}] [@option{--help}] [@option{--version}]@end ignore@c man end@c man begin DESCRIPTION jv-convert@command{jv-convert} is a utility included with @code{libgcj} whichconverts a file from one encoding to another.  It is similar to the Unix@command{iconv} utility.The encodings supported by @command{jv-convert} are platform-dependent.Currently there is no way to get a list of all supported encodings.@c man end@c man begin OPTIONS jv-convert@table @gcctabopt@item --encoding @var{name}@itemx --from @var{name}Use @var{name} as the input encoding.  The default is the currentlocale's encoding.@item --to @var{name}Use @var{name} as the output encoding.  The default is the@code{JavaSrc} encoding; this is ASCII with @samp{\u} escapes fornon-ASCII characters.@item -i @var{file}Read from @var{file}.  The default is to read from standard input.@item -o @var{file}Write to @var{file}.  The default is to write to standard output.@item --reverseSwap the input and output encodings.@item --helpPrint a help message, then exit.@item --versionPrint version information, then exit.@end table@c man end@node Invoking grmic@chapter Invoking grmic@c man title grmic Generate stubs for Remote Method Invocation@c man begin SYNOPSIS grmic@command{grmic} [@option{OPTION}] @dots{} @var{class} @dots{}@ignore  [@option{-keep}]  [@option{-keepgenerated}]  [@option{-v1.1}]  [@option{-vcompat}]  [@option{-v1.2}]  [@option{-nocompile}]  [@option{-verbose}]  [@option{-d} @var{directory}]  [@option{-help}]  [@option{-version}]@end ignore@c man end@c man begin DESCRIPTION grmic@command{grmic} is a utility included with @code{libgcj} which generatesstubs for remote objects.@c FIXME: Add real information here.@c This really isn't much more than the --help output.Note that this program isn't yet fully compatible with the JDK@command{grmic}.  Some options, such as @option{-classpath}, arerecognized but currently ignored.  We have left these optionsundocumented for now.Long options can also be given with a GNU-style leading @samp{--}.  Forinstance, @option{--help} is accepted.@c man end@c man begin OPTIONS grmic@table @gcctabopt@item -keep@itemx -keepgeneratedBy default, @command{grmic} deletes intermediate files.  Either of theseoptions causes it not to delete such files.@item -v1.1Cause @command{grmic} to create stubs and skeletons for the 1.1protocol version.@item -vcompatCause @command{grmic} to create stubs and skeletons compatible with boththe 1.1 and 1.2 protocol versions.  This is the default.@item -v1.2Cause @command{grmic} to create stubs and skeletons for the 1.2protocol version.@item -nocompileDon't compile the generated files.@item -verbosePrint information about what @command{grmic} is doing.@item -d @var{directory}Put output files in @var{directory}.  By default the files are put inthe current working directory.@item -helpPrint a help message, then exit.@item -versionPrint version information, then exit.@end table@c man end@node Invoking gc-analyze@chapter Invoking gc-analyze@c man title gc-analyze Analyze Garbage Collector (GC) memory dumps@c man begin SYNOPSIS gc-analyze@command{gc-analyze} [@option{OPTION}] @dots{} [@var{file}]@ignore

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?