ืื ื’ืœื™ืชืฆืจืคืชื™ืชืกืคืจื“ื™

ืกืžืœ OnWorks

powerpc-linux-gnu-gcj-5 - ืžืงื•ื•ืŸ ื‘ืขื ืŸ

ื”ืคืขืœ ืืช powerpc-linux-gnu-gcj-5 ื‘ืกืคืง ืื™ืจื•ื— ื—ื™ื ืžื™ ืฉืœ OnWorks ื‘ืืžืฆืขื•ืช ืื•ื‘ื•ื ื˜ื• ืžืงื•ื•ืŸ, ืคื“ื•ืจื” ืžืงื•ื•ืŸ, ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ Windows ืื• ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ MAC OS

ื–ื•ื”ื™ ื”ืคืงื•ื“ื” powerpc-linux-gnu-gcj-5 ืฉื ื™ืชืŸ ืœื”ืคืขื™ืœ ื‘ืกืคืง ื”ืื™ืจื•ื— ื”ื—ื™ื ืžื™ ืฉืœ OnWorks ื‘ืืžืฆืขื•ืช ืื—ืช ืžืชื—ื ื•ืช ื”ืขื‘ื•ื“ื” ื”ืžืงื•ื•ื ื•ืช ื”ืžืจื•ื‘ื•ืช ืฉืœื ื• ื‘ื—ื™ื ื ื›ื’ื•ืŸ Ubuntu Online, Fedora Online, ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ Windows ืื• ืืžื•ืœื˜ื•ืจ ืžืงื•ื•ืŸ ืฉืœ MAC OS

ืชึธื›ึฐื ึดื™ืช:

ืฉืึตื


gcj - ืžื”ื“ืจ ืžืจืืฉ ืœืฉืคืช Java

ืชึทืงืฆึดื™ืจ


gcj [-Idir...] [-d dir...]
[--CLASSPATH=ื ืชื™ื‘] [--- classpath=ื ืชื™ื‘]
[-fืื•ึนืคึผึฐืฆึดื™ึธื”...] [--ื”ึทืฆืคึผึธื ึธื”=ืฉื]
[--ืจึธืืฉืึดื™=ืฉื ื›ื™ืชื”] [-Dืฉื[=ืขืจืš]...]
[-C] [--ืžึทืฉืืึธื‘ ืฉื ืžืฉืื‘] [-d ื‘ืกืคืจื™ื™ื”]
[-Wืœื”ื–ื”ื™ืจ...]
ืงื•ื‘ืฅ ืžืงื•ืจ...

ืชื™ืื•ืจ


As gcj ื”ื•ื ืจืง ืขื•ื“ ืงืฆื” ืงื“ืžื™ gcc, ื”ื•ื ืชื•ืžืš ื‘ืจื‘ื•ืช ืžืื•ืชืŸ ืืคืฉืจื•ื™ื•ืช ื›ืžื• gcc.
ืžื“ืจื™ืš ื–ื” ืžืชืขื“ ืจืง ืืช ื”ืืคืฉืจื•ื™ื•ืช ื”ืกืคืฆื™ืคื™ื•ืช gcj.

ืืคืฉืจื•ื™ื•ืช


ืงึถืœึถื˜ ื• ืชืคื•ืงื” ืงื‘ืฆื™ื
A gcj ื”ืคืงื•ื“ื” ื”ื™ื ื›ืžื• ื gcc ื”ืคืงื•ื“ื”, ื‘ื›ืš ืฉื”ื™ื ืžื•ืจื›ื‘ืช ืžืžืกืคืจ ืืคืฉืจื•ื™ื•ืช ื•ืงื•ื‘ืฅ
ืฉืžื•ืช. ื”ืกื•ื’ื™ื ื”ื‘ืื™ื ืฉืœ ืฉืžื•ืช ืงื‘ืฆื™ ืงืœื˜ ื ืชืžื›ื™ื:

ืคื™ืœื”.Java
ืงื‘ืฆื™ ืžืงื•ืจ ืฉืœ Java.

ืคื™ืœื”.ืžืขืžื“
ืงื‘ืฆื™ Java bytecode.

ืคื™ืœื”Zip.
ืคื™ืœื”. ืฆื ืฆื ืช
ืืจื›ื™ื•ืŸ ื”ืžื›ื™ืœ ืงื•ื‘ืฅ ".class" ืื—ื“ ืื• ื™ื•ืชืจ, ืฉื›ื•ืœื ืžื•ืจื›ื‘ื™ื. ื”
ื”ืืจื›ื™ื•ืŸ ืขืฉื•ื™ ืœื”ื™ื•ืช ื“ื—ื•ืก. ืงื‘ืฆื™ื ื‘ืืจื›ื™ื•ืŸ ืฉืื™ื ื ืžืกืชื™ื™ืžื™ื ื‘ .ืžืขืžื“ ื™ืฉ ืœื•
ืžื˜ื•ืคืœื™ื ื›ืงื‘ืฆื™ ืžืฉืื‘ื™ื; ื”ื ืžื•ืจื›ื‘ื™ื ืœืงื•ื‘ืฅ ื”ืื•ื‘ื™ื™ืงื˜ ื”ืžืชืงื‘ืœ ื› ื”ืœื™ื‘ื”:
ื›ืชื•ื‘ื•ืช ืืชืจื™ื.

@ืคื™ืœื”
ืงื•ื‘ืฅ ื”ืžื›ื™ืœ ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ืจื•ื•ื— ืœื‘ืŸ ืฉืœ ืฉืžื•ืช ืงื‘ืฆื™ ืงืœื˜. (ื›ืจื’ืข, ืืœื”
ื›ื•ืœื ื—ื™ื™ื‘ื™ื ืœื”ื™ื•ืช ืงื•ื‘ืฆื™ ืžืงื•ืจ ".java", ืื‘ืœ ื–ื” ืขืฉื•ื™ ืœื”ืฉืชื ื•ืช.) ื›ืœ ืงื•ื‘ืฅ ื‘ืขืœ ืฉื ืžื•ืจื›ื‘,
ืžืžืฉ ื›ืื™ืœื• ื–ื” ื”ื™ื” ื‘ืฉื•ืจืช ื”ืคืงื•ื“ื”.

ืกืคืจื™ื”.a
ืกืคืจื™ื”.ืœื›ืŸ
-llibname
ืกืคืจื™ื•ืช ืœืฉื™ืžื•ืฉ ื‘ืขืช ืงื™ืฉื•ืจ. ืจืื” ืืช gcc ืžื“ืจื™ืš ืœ.

ืืชื” ื™ื›ื•ืœ ืœืฆื™ื™ืŸ ื™ื•ืชืจ ืžืงื•ื‘ืฅ ืงืœื˜ ืื—ื“ ื‘- gcj ืฉื•ืจืช ื”ืคืงื•ื“ื”, ื•ื‘ืžืงืจื” ื–ื” ื”ื ื™ืขืฉื• ื–ืืช
ื›ื•ืœื ื™ื•ืจื›ื‘ื•. ืื ืืชื” ืžืฆื™ื™ืŸ "-o ืฉื ืงื•ื‘ืฅ" ืืคืฉืจื•ืช, ื›ืœ ืงื‘ืฆื™ ื”ืงืœื˜ ื™ื”ื™ื•
ื”ื™ื“ื•ืจ ื™ื—ื“, ืชื•ืš ื”ืคืงืช ืงื•ื‘ืฅ ืคืœื˜ ื™ื—ื™ื“, ื‘ืฉื ืฉื ืงื•ื‘ืฅ. ื–ื” ืžื•ืชืจ ืืคื™ืœื•
ื‘ืขืช ืฉื™ืžื•ืฉ ื‘-"-S" ืื• "-c", ืืš ืœื ื‘ืขืช ืฉื™ืžื•ืฉ ื‘-"-C" ืื• "--resource". (ื–ื• ื”ืจื—ื‘ื”
ืžืขื‘ืจ ืœืžื™ืฉื•ืจ ืžื” gcc ืžืืคืฉืจ.) (ืื ืฆื•ื™ืŸ ื™ื•ืชืจ ืžืงื•ื‘ืฅ ืงืœื˜ ืื—ื“, ื›ื•ืœื ื—ื™ื™ื‘ื™ื
ื›ืจื’ืข ื”ื ืงื‘ืฆื™ ".java", ืื ื›ื™ ืื ื• ืžืงื•ื•ื™ื ืœืชืงืŸ ื–ืืช.)

ืงึถืœึถื˜ ืืคืฉืจื•ื™ื•ืช
gcj ื™ืฉ ืืคืฉืจื•ื™ื•ืช ืœืฉืœื•ื˜ ื”ื™ื›ืŸ ื”ื•ื ื ืจืื” ื›ื“ื™ ืœืžืฆื•ื ืงื‘ืฆื™ื ืฉื”ื•ื ืฆืจื™ืš. ืœื“ื•ื’ืžื”, gcj ื™ื›ื•ืœ
ืฆืจื™ืš ืœื˜ืขื•ืŸ ืžื—ืœืงื” ืฉืžืชื™ื™ื—ืกืช ืืœื™ื” ื”ืงื•ื‘ืฅ ืฉื”ื•ื ื”ืชื‘ืงืฉ ืœื”ื“ืจ. ื›ืžื•
ืžื”ื“ืจื™ื ืื—ืจื™ื ืœืฉืคืช Java, gcj ื™ืฉ ืžื•ืฉื’ ืฉืœ ื ื‘ื›ื™ืชื” ื ืชื™ื‘. ื™ืฉ
ืžืกืคืจ ืืคืฉืจื•ื™ื•ืช ื•ืžืฉืชื ื™ ืกื‘ื™ื‘ื” ืฉื ื™ืชืŸ ืœื”ืฉืชืžืฉ ื‘ื”ื ื›ื“ื™ ืœืชืคืขืœ ืืช ื ืชื™ื‘ ื”ืžื—ืœืงื”.
ืžืชื™ gcj ืžื—ืคืฉ ืžื—ืœืงื” ื ืชื•ื ื”, ื”ื•ื ืžื—ืคืฉ ืืช ื ืชื™ื‘ ื”ืžื—ืœืงื” ืžื—ืคืฉ ื”ืชืืžื” .ืžืขืžื“
or .Java ืงื•ื‘ืฅ. gcj ืžื’ื™ืข ืขื ื ืชื™ื‘ ืžื—ืœืงื” ืžื•ื‘ื ื” ืฉืžืฆื‘ื™ืข ืขืœ ื”ืžื•ืชืงืŸ
libgcj.jar, ืงื•ื‘ืฅ ื”ืžื›ื™ืœ ืืช ื›ืœ ื”ืžื—ืœืงื•ืช ื”ืกื˜ื ื“ืจื˜ื™ื•ืช.

ื‘ื˜ืงืกื˜ ืฉืœื”ืœืŸ, ืกืคืจื™ื™ื” ืื• ืจื›ื™ื‘ ื ืชื™ื‘ ื™ื›ื•ืœื™ื ืœื”ืชื™ื™ื—ืก ืœืกืคืจื™ื” ื‘ืคื•ืขืœ
ืขืœ ืžืขืจื›ืช ื”ืงื‘ืฆื™ื, ืื• ืœ-a Zip. or . ืฆื ืฆื ืช ืงื•ื‘ืฅ, ืืฉืจ gcj ื™ื—ืคืฉ ื›ืื™ืœื• ื–ื” ื
ื‘ืžื“ืจื™ืš.

-Idir
ื›ืœ ื”ืกืคืจื™ื•ืช ื”ืžืฆื•ื™ื ื•ืช ืขืœ ื™ื“ื™ "-I" ื ืฉืžืจื•ืช ื‘ืกื“ืจ ื•ืžื•ืฆืžื“ื•ืช ืœื ืชื™ื‘ ื”ืžื—ืœืงื”
ื‘ื ื•ื™ ืžื›ืœ ื”ืืคืฉืจื•ื™ื•ืช ื”ืื—ืจื•ืช. ืืœื ืื ื›ืŸ ืชืื™ืžื•ืช ืœื›ืœื™ื ื›ืžื• "javac"
ื—ืฉื•ื‘, ืื ื• ืžืžืœื™ืฆื™ื ืœื”ืฉืชืžืฉ ืชืžื™ื“ ื‘-"-I" ื‘ืžืงื•ื ื‘ืืคืฉืจื•ื™ื•ืช ื”ืื—ืจื•ืช ืขื‘ื•ืจ
ืžื ื™ืคื•ืœืฆื™ื” ืฉืœ ื ืชื™ื‘ ื”ื›ื™ืชื”.

--classpath=ื ืชื™ื‘
ื–ื” ืžื’ื“ื™ืจ ืืช ื ืชื™ื‘ ื”ื›ื™ืชื” ืœ ื ืชื™ื‘, ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ื ืงื•ื“ืชื™ื™ื ืฉืœ ื ืชื™ื‘ื™ื (ื‘-Windows ืžื‘ื•ืกืก
ืžืขืจื›ื•ืช, ืจืฉื™ืžื” ื ืคืจื“ืช ืฉืœ ื ืชื™ื‘ื™ื ื‘ื ืงื•ื“ื”-ืคืกื™ืง). ื–ื” ืœื ืขื•ืงืฃ ืืช ื”ืžื•ื‘ื ื”
ื ืชื™ื‘ ื—ื™ืคื•ืฉ ("ืืชื—ื•ืœ").

--CLASSPATH=ื ืชื™ื‘
ืžื™ืœื” ื ืจื“ืคืช ืฉื”ื•ืฆืื” ืžืฉื™ืžื•ืฉ ืขื‘ื•ืจ "--classpath".

--bootclasspath=ื ืชื™ื‘
ื”ื™ื›ืŸ ื ื™ืชืŸ ืœืžืฆื•ื ืืช ื”ืžื—ืœืงื•ืช ื”ืžื•ื‘ื ื•ืช ื”ืกื˜ื ื“ืจื˜ื™ื•ืช, ื›ื’ื•ืŸ "java.lang.String".

--extdirs=ื ืชื™ื‘
ืขื‘ื•ืจ ื›ืœ ืกืคืจื™ื™ื” ื‘- ื ืชื™ื‘, ืžืงื ืืช ื”ืชื•ื›ืŸ ืฉืœ ืกืคืจื™ื™ื” ื–ื• ื‘ืกื•ืฃ ื”-
ื ืชื™ื‘ ื›ื™ืชื”.

CLASSPATH
ื–ื”ื• ืžืฉืชื ื” ืกื‘ื™ื‘ื” ืฉืžื›ื™ืœ ืจืฉื™ืžื” ืฉืœ ื ืชื™ื‘ื™ื.

ื ืชื™ื‘ ื”ื›ื™ืชื” ื”ืกื•ืคื™ ื‘ื ื•ื™ ื›ืš:

* ืงื•ื“ื ื›ืœ ื›ืœ ื”ืžื“ืจื™ื›ื™ื ืฉืฆื•ื™ื ื• ื‘ืืžืฆืขื•ืช "-I".

* ืื --- classpath ืžืฆื•ื™ืŸ, ื”ืขืจืš ืฉืœื• ืžืฆื•ืจืฃ. ืื—ืจืช, ืื ื”-"CLASSPATH"
ืžืฉืชื ื” ืกื‘ื™ื‘ื” ืžืฆื•ื™ืŸ, ื•ืื– ื”ืขืจืš ืฉืœื• ืžืฆื•ืจืฃ. ืื—ืจืช, ื”ื ื•ื›ื—ื™
ืกืคืจื™ื™ื” (".") ืžืฆื•ืจืฃ.

* ืื ืฆื•ื™ืŸ "--bootclasspath", ื”ื•ืกืฃ ืืช ื”ืขืจืš ืฉืœื•. ืื—ืจืช, ื”ื•ืกืฃ ืืช ื”ืžื•ื‘ื ื”
ืกืคืจื™ื™ืช ืžืขืจื›ืช, libgcj.jar.

* ืœื‘ืกื•ืฃ, ืื ืฆื•ื™ืŸ "--extdirs", ื”ื•ืกืฃ ืืช ื”ืชื•ื›ืŸ ืฉืœ ื”ืงื•ื‘ืฅ ืฉืฆื•ื™ืŸ
ืกืคืจื™ื•ืช ื‘ืกื•ืฃ ื ืชื™ื‘ ื”ื›ื™ืชื”. ืื—ืจืช, ืฆืจืฃ ืืช ื”ืชื•ื›ืŸ ืฉืœ
Extdirs ืžื•ื‘ื ื™ื ื‘-"$(prefix)/share/java/ext".

ื”-classfile ืฉื ื‘ื ื” ืขืœ ื™ื“ื™ gcj ืขื‘ื•ืจ ื”ืžื—ืœืงื” "java.lang.Object" (ื•ืžืžื•ืงื ื‘-"libgcj.jar")
ืžื›ื™ืœ ืชื›ื•ื ื” ืžื™ื•ื—ื“ืช ื‘ืื•ืจืš ืืคืก "gnu.gcj.gcj-compiled". ื”ืžื”ื“ืจ ืžื—ืคืฉ
ืชื›ื•ื ื” ื–ื• ื‘ืขืช ื˜ืขื™ื ืช "java.lang.Object" ื•ืชื“ื•ื•ื— ืขืœ ืฉื’ื™ืื” ืื โ€‹โ€‹ื”ื™ื ืœื ืชื™ืžืฆื,
ืืœื ืื ื”ื•ื ืงื•ืžืคื™ืœืฆื™ื” ืœืงื•ื“ ื‘ื™ื™ื˜ (ื ื™ืชืŸ ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช "-fforce-classes-archive-check" ื›ื“ื™
ืœืขืงื•ืฃ ื”ืชื ื”ื’ื•ืช ื–ื• ื‘ืžืงืจื” ื”ืกืคืฆื™ืคื™ ื”ื–ื”.)

-fforce-classes-archive-check
ื–ื” ืžืืœืฅ ืืช ื”ืžื”ื“ืจ ืœื‘ื“ื•ืง ืชืžื™ื“ ืืช ืชื›ื•ื ืช ืื•ืจืš ื”ืืคืก ื”ืžื™ื•ื—ื“ืช
"gnu.gcj.gcj-compiled" ื‘-"java.lang.Object" ื•ื”ืคืงืช ืฉื’ื™ืื” ืื โ€‹โ€‹ื”ื™ื ืœื ื ืžืฆืืช.

-fsource=ื’ึดืจึฐืกึธื”
ืืคืฉืจื•ืช ื–ื• ืžืฉืžืฉืช ืœื‘ื—ื™ืจืช ื’ืจืกืช ื”ืžืงื•ืจ ื”ืžืงื•ื‘ืœืช ืขืœ ื™ื“ื™ gcj. ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ื”ื™ื 1.5.

ืงื™ื“ื•ื“ื™ื
ืฉืคืช ื”ืชื›ื ื•ืช Java ืžืฉืชืžืฉืช ื‘ื™ื•ื ื™ืงื•ื“ ืœืื•ืจืš ื›ืœ ื”ื“ืจืš. ื‘ืžืืžืฅ ืœื”ืฉืชืœื‘ ื”ื™ื˜ื‘
ืขื ืžืงื•ืžื•ืช ืื—ืจื™ื, gcj ืžืืคืฉืจ .Java ืงื‘ืฆื™ื ืฉื™ื™ื›ืชื‘ื• ื‘ืืžืฆืขื•ืช ื›ืžืขื˜ ื›ืœ ืงื™ื“ื•ื“. gcj
ื™ื•ื“ืข ืœื”ืžื™ืจ ืืช ื”ืงื™ื“ื•ื“ื™ื ื”ืœืœื• ืœืงื™ื“ื•ื“ ื”ืคื ื™ืžื™ ืฉืœื• ื‘ื–ืžืŸ ื”ื”ื™ื“ื•ืจ.

ืืชื” ื™ื›ื•ืœ ืœื”ืฉืชืžืฉ ื‘-"--encoding=ืฉืึตื" ืืคืฉืจื•ืช ืœืฆื™ื™ืŸ ืงื™ื“ื•ื“ (ื‘ืขืœ ืชื• ืžืกื•ื™ื
set) ืœืฉื™ืžื•ืฉ ืขื‘ื•ืจ ืงื‘ืฆื™ ืžืงื•ืจ. ืื ื–ื” ืœื ืžืฆื•ื™ืŸ, ืงื™ื“ื•ื“ ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ืžื’ื™ืข
ื”ืžืงื•ื ื”ื ื•ื›ื—ื™ ืฉืœืš. ืื ืœืžืขืจื›ืช ื”ืžืืจื—ืช ืฉืœืš ืื™ืŸ ืชืžื™ื›ื” ืžืงื•ืžื™ืช ืžืกืคืงืช, ืื– gcj
ืžื ื™ื— ืฉืงื™ื“ื•ื“ ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ื”ื•ื ื” UTF-8 ืงื™ื“ื•ื“ ืฉืœ Unicode.

ื›ื“ื™ ืœื™ื™ืฉื "--encoding", gcj ืคืฉื•ื˜ ืžืฉืชืžืฉ ื‘ืฉื’ืจืช ื”ื”ืžืจื” "iconv" ืฉืœ ื”ืคืœื˜ืคื•ืจืžื” ื”ืžืืจื—ืช.
ื–ื” ืื•ืžืจ ืฉื‘ืคื•ืขืœ gcj ืžื•ื’ื‘ืœ ืขืœ ื™ื“ื™ ื”ื™ื›ื•ืœื•ืช ืฉืœ ื”ืคืœื˜ืคื•ืจืžื” ื”ืžืืจื—ืช.

ื”ืฉืžื•ืช ื”ืžื•ืชืจื™ื ืœืืจื’ื•ืžื ื˜ "--encoding" ืžืฉืชื ื™ื ืžืคืœื˜ืคื•ืจืžื” ืœืคืœื˜ืคื•ืจืžื” (ืžื›ื™ื•ื•ืŸ ืฉื”ื
ืื™ื ื ืกื˜ื ื“ืจื˜ื™ื™ื ื‘ืฉื•ื ืžืงื•ื). ืœืžืจื•ืช ื–ืืช, gcj ืžื™ื™ืฉื ืืช ื”ืงื™ื“ื•ื“ ื‘ืฉื UTF-8
ื‘ืื•ืคืŸ ืคื ื™ืžื™, ื›ืš ืฉืื ืชื‘ื—ืจ ืœื”ืฉืชืžืฉ ื‘ื–ื” ืขื‘ื•ืจ ืงื‘ืฆื™ ื”ืžืงื•ืจ ืฉืœืš, ืืชื” ื™ื›ื•ืœ ืœื”ื™ื•ืช ื‘ื˜ื•ื— ืฉื–ื”
ื™ืขื‘ื•ื“ ืขืœ ื›ืœ ืžืืจื—.

ืื–ื”ืจื•ืช
gcj ืžื™ื™ืฉื ืžืกืคืจ ืื–ื”ืจื•ืช. ื›ืžื• ืขื ื’ื ืจื™ ืื—ืจ gcc ืื–ื”ืจื•ืช, ืื ืืคืฉืจื•ืช ืฉืœ
ื˜ื•ืคืก "-Wfoo" ืžืืคืฉืจ ืื–ื”ืจื”, ื•ืื– "-Wno-foo" ื™ืฉื‘ื™ืช ืื•ืชื”. ื›ืืŸ ื‘ื—ืจื ื• ืœืขืฉื•ืช
ืชืขื“ ืืช ืฆื•ืจืช ื”ืื–ื”ืจื” ืฉืชืฉืคื™ืข -- ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ื”ื™ื ื”
ื”ื”ืคืš ืžืžื” ืฉืจืฉื•ื.

-ืžืฉืชื ื™ื ืžื™ื•ืชืจื™ื
ืขื ื”ื“ื’ืœ ื”ื–ื”, gcj ื™ื–ื”ื™ืจ ืžืคื ื™ ื’ื•ืจืžื™ื ืžื™ื•ืชืจื™ื. ืœืžืฉืœ, ื–ื” ื™ื–ื”ื™ืจ
ืื ืฉื™ื˜ืช ืžืžืฉืง ืžื•ื›ืจื–ืช ื›"ืฆื™ื‘ื•ืจื™ืช".

-Wextraneous-ื ืงื•ื“ื”-ืคืกื™ืง
ื–ื” ื’ื•ืจื gcj ืœื”ื–ื”ื™ืจ ืžืคื ื™ ื”ืฆื”ืจื•ืช ืจื™ืงื•ืช. ื”ืฆื”ืจื•ืช ืจื™ืงื•ืช ื”ื™ื•
ื”ื•ืฆื ืžืฉื™ืžื•ืฉ.

-ืœื ืžื™ื•ืฉืŸ
ืืคืฉืจื•ืช ื–ื• ืชื’ืจื•ื gcj ืœื ืœื”ื–ื”ื™ืจ ื›ืืฉืจ ืงื•ื‘ืฅ ืžืงื•ืจ ื—ื“ืฉ ื™ื•ืชืจ ืžื”ื”ืชืืžื” ืฉืœื•
ืงื•ื‘ืฅ ื›ื™ืชื”. ื›ื‘ืจื™ืจืช ืžื—ื“ืœ gcj ื™ื–ื”ื™ืจ ืขืœ ื›ืš.

-ืœื ื”ื•ืฆื ืžืฉื™ืžื•ืฉ
ืื–ื”ืจื” ืื ืžืชื™ื™ื—ืกื™ื ืœืžื—ืœืงื”, ืฉื™ื˜ื” ืื• ืฉื“ื” ืฉื”ื•ืฆืื• ืžืฉื™ืžื•ืฉ.

-ืœื ื‘ืฉื™ืžื•ืฉ
ื–ื” ืื•ืชื• ื“ื‘ืจ ื›ืžื• gccืฉืœ "-Wunused".

- ืงื™ืจ
ื–ื” ื–ื”ื” ืœ-"-Wredundant-modifiers -Wextraneous-semicolon -Wunused".

ืžืงืฉืจ
ื›ื“ื™ ืœื”ืคื•ืš ื™ื™ืฉื•ื Java ืœืชื•ื›ื ื™ืช ื ื™ืชื ืช ืœื”ืจืฆื”, ืขืœื™ืš ืœืงืฉืจ ืื•ืชื• ืขื ื”ื“ืจื•ืฉ
ืกืคืจื™ื•ืช, ื‘ื“ื™ื•ืง ื›ืžื• ืขื‘ื•ืจ C ืื• C++. ื”ืžืงืฉืจ ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ืžื—ืคืฉ ืคื•ื ืงืฆื™ื” ื’ืœื•ื‘ืœื™ืช ื‘ืฉื
"ืจึธืืฉืึดื™". ืžืื– Java ืื™ืŸ ืคื•ื ืงืฆื™ื•ืช ื’ืœื•ื‘ืœื™ื•ืช, ื•ืื•ืกืฃ ืฉืœ ืžื—ืœืงื•ืช Java ืขืฉื•ื™
ื™ืฉ ื™ื•ืชืจ ืžืžื—ืœืงื” ืื—ืช ืขื ืฉื™ื˜ื” "ืจืืฉื™ืช", ืขืœื™ืš ืœื™ื™ื“ืข ืืช ื”ืžืงืฉืจ ืื™ื–ื• ืžื”ืŸ
ืื•ืชืŸ ืฉื™ื˜ื•ืช "ืขื™ืงืจื™ื•ืช" ืฉืขืœื™ื• ืœื”ืคืขื™ืœ ื‘ืขืช ื”ืคืขืœืช ื”ื™ื™ืฉื•ื. ืืชื” ื™ื›ื•ืœ ืœืขืฉื•ืช ืืช ื–ื” ื‘
ื›ืœ ืื—ืช ืžื”ื“ืจื›ื™ื ื”ื‘ืื•ืช:

* ืฆื™ื™ืŸ ืืช ื”ืžื—ืœืงื” ื”ืžื›ื™ืœื” ืืช ืฉื™ื˜ืช ื”"ืจืืฉื™ืช" ื”ืจืฆื•ื™ื” ื‘ืขืช ืงื™ืฉื•ืจ ื”ืืคืœื™ืงืฆื™ื”,
ื‘ืืžืฆืขื•ืช ื”ื“ื’ืœ "--main", ื”ืžืชื•ืืจ ืœื”ืœืŸ.

* ืงืฉืจ ืืช ื—ื‘ื™ืœื•ืช Java ืœืกืคืจื™ื™ื” ืžืฉื•ืชืคืช (dll) ื‘ืžืงื•ื ืœืงื•ื‘ืฅ ื”ืคืขืœื”. ืœืื—ืจ ืžื›ืŸ
ื”ืคืขืœ ืืช ื”ื™ื™ืฉื•ื ื‘ืืžืฆืขื•ืช ืชื•ื›ื ื™ืช "gij", ื•ื•ื“ื ืฉ-"gij" ื™ื›ื•ืœ ืœืžืฆื•ื ืืช
ืกืคืจื™ื•ืช ืฉื”ื•ื ืฆืจื™ืš.

* ืงืฉืจ ืืช ื—ื‘ื™ืœื•ืช ื”-Java ืขื ื”ื“ื’ืœ "-lgij", ื”ืžืงืฉืจ ื‘ืฉื’ืจืช ื”"ืจืืฉื™ืช".
ืžื”ืคืงื•ื“ื” "gij". ื–ื” ืžืืคืฉืจ ืœืš ืœื‘ื—ื•ืจ ืืช ื”ืžื—ืœืงื” ืฉื”ืฉื™ื˜ื” ื”"ืขื™ืงืจื™ืช" ืฉืœื” ืืชื”
ืจื•ืฆื” ืœื”ืคืขื™ืœ ื›ืืฉืจ ืืชื” ืžืคืขื™ืœ ืืช ื”ื™ื™ืฉื•ื. ืืชื” ื™ื›ื•ืœ ื’ื ืœื”ืฉืชืžืฉ ื‘ื“ื’ืœื™ "gij" ืื—ืจื™ื, ื›ื’ื•ืŸ
ื“ื’ืœื™ื "-D" ืœื”ื’ื“ืจืช ืžืืคื™ื™ื ื™ื. ืฉื™ืžื•ืฉ ื‘ืกืคืจื™ื™ืช "-lgij" (ื•ืœื ื‘-"gij"
ืœืชื•ื›ื ื™ืช ืฉืœ ื”ืžื ื’ื ื•ืŸ ื”ืงื•ื“ื) ื™ืฉ ื›ืžื” ื™ืชืจื•ื ื•ืช: ื”ื™ื ืชื•ืืžืช ืœืกื˜ื˜ื™
ืงื™ืฉื•ืจ, ื•ืื™ื ื• ื“ื•ืจืฉ ื”ื’ื“ืจื” ืื• ื”ืชืงื ื” ืฉืœ ืกืคืจื™ื•ืช.

ืืคืฉืจื•ื™ื•ืช "gij" ืืœื” ืงืฉื•ืจื•ืช ืœืงื™ืฉื•ืจ ืงื•ื‘ืฅ ื”ืคืขืœื”:

--main=CLASSNAME
ืืคืฉืจื•ืช ื–ื• ืžืฉืžืฉืช ื‘ืขืช ื”ืงื™ืฉื•ืจ ื›ื“ื™ ืœืฆื™ื™ืŸ ืืช ืฉื ื”ืžื—ืœืงื” ืฉืฉื™ื˜ืช ื”"ืจืืฉื™ืช" ืฉืœื”
ื™ืฉ ืœื”ืคืขื™ืœ ื›ืืฉืจ ืงื•ื‘ืฅ ื”ื”ืคืขืœื” ื”ืžืชืงื‘ืœ ืžื•ืคืขืœ.

-Dืฉื[=ืขืจืš]
ื ื™ืชืŸ ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืจืง ืขื "--main". ื”ื•ื ืžื’ื“ื™ืจ ืžืืคื™ื™ืŸ ืžืขืจื›ืช ื‘ืฉื ืฉื
ืขื ืขืจืš ืขืจืš. ืื ืขืจืš ืœื ืฆื•ื™ืŸ ืื– ื–ื” ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ืœืžื—ืจื•ื–ืช ื”ืจื™ืงื”.
ืžืืคื™ื™ื ื™ ืžืขืจื›ืช ืืœื• ืžืื•ืชื—ืœื™ื ืขื ื”ื”ืคืขืœื” ืฉืœ ื”ืชื•ื›ื ื™ืช ื•ื ื™ืชืŸ ืœืื—ื–ืจ ืื•ืชื
ื‘ื–ืžืŸ ืจื™ืฆื” ื‘ืฉื™ื˜ืช "java.lang.System.getProperty".

-ืœื’ij
ืฆื•ืจ ื™ื™ืฉื•ื ืฉืขื™ื‘ื•ื“ ืฉื•ืจืช ื”ืคืงื•ื“ื” ืฉืœื• ื”ื•ื ื–ื” ืฉืœ ื”ืคืงื•ื“ื” "gij".

ืืคืฉืจื•ืช ื–ื• ื”ื™ื ื—ืœื•ืคื” ืœืฉื™ืžื•ืฉ ื‘---main; ืืชื” ืœื ื™ื›ื•ืœ ืœื”ืฉืชืžืฉ ื‘ืฉื ื™ื”ื.

-static-libgcj
ืืคืฉืจื•ืช ื–ื• ื’ื•ืจืžืช ืœืงื™ืฉื•ืจ ืœื”ืชื‘ืฆืข ื›ื ื’ื“ ื’ืจืกื” ืกื˜ื˜ื™ืช ืฉืœ ื–ืžืŸ ื”ืจื™ืฆื” libgcj
ืกึดืคึฐืจึดื™ึธื”. ืืคืฉืจื•ืช ื–ื• ื–ืžื™ื ื” ืจืง ืื ืงื™ื™ืžืช ืชืžื™ื›ืช ืงื™ืฉื•ืจ ืชื•ืืžืช.

ื–ึฐื”ึดื™ืจื•ึผืช: ืงื™ืฉื•ืจ ืกื˜ื˜ื™ ืฉืœ libgcj ืขืœื•ืœ ืœื’ืจื•ื ืœื”ืฉืžื˜ืช ื—ืœืงื™ื ื—ื™ื•ื ื™ื™ื ืฉืœ libgcj.
ื—ืœืงื™ื ืžืกื•ื™ืžื™ื ืฉืœ libgcj ืžืฉืชืžืฉื™ื ื‘ื”ืฉืชืงืคื•ืช ื›ื“ื™ ืœื˜ืขื•ืŸ ืžื—ืœืงื•ืช ื‘ื–ืžืŸ ืจื™ืฆื”. ืžืื– ื”ืžืงืฉืจ ืขื•ืฉื”
ืœื ืจื•ืื” ืืช ื”ื”ืคื ื™ื•ืช ื”ืœืœื• ื‘ื–ืžืŸ ื”ืงื™ืฉื•ืจ, ื”ื•ื ื™ื›ื•ืœ ืœื”ืฉืžื™ื˜ ืืช ื”ืฉื™ืขื•ืจื™ื ื”ืžื•ืคื ื™ื. ื”
ื”ืชื•ืฆืื” ื”ื™ื ื‘ื“ืจืš ื›ืœืœ (ืืš ืœื ืชืžื™ื“) "ClassNotFoundException" ืฉื ื–ืจืง ื‘ื–ืžืŸ ืจื™ืฆื”.
ื™ืฉ ืœื ืงื•ื˜ ืžืฉื ื” ื–ื”ื™ืจื•ืช ื‘ืขืช ืฉื™ืžื•ืฉ ื‘ืืคืฉืจื•ืช ื–ื•. ืœืคืจื˜ื™ื ื ื•ืกืคื™ื ืจืื”:
<http://gcc.gnu.org/wiki/Statically%20linking%20libgcj>

ืงื•ืคื•ื ื™ื ื“ื•ืจ
ื‘ื ื•ืกืฃ ืœืจื‘ื™ื gcc ืืคืฉืจื•ื™ื•ืช ื‘ืงืจื” ืขืœ ื™ืฆื™ืจืช ืงื•ื“, gcj ื™ืฉ ืžืกืคืจ ืืคืฉืจื•ื™ื•ืช
ืกืคืฆื™ืคื™ืช ืœืขืฆืžื•.

-C ืืคืฉืจื•ืช ื–ื• ืžืฉืžืฉืช ื›ื“ื™ ืœืกืคืจ gcj ืœื™ืฆื•ืจ ืงื•ื“ ื‘ืชื™ื (.ืžืขืžื“ ืงื‘ืฆื™ื) ื‘ืžืงื•ื ืื•ื‘ื™ื™ืงื˜
ืงื•ื“.

--ืžึทืฉืืึธื‘ ืฉื ืžืฉืื‘
ืืคืฉืจื•ืช ื–ื• ืžืฉืžืฉืช ื›ื“ื™ ืœืกืคืจ gcj ืœืงืžืคืœ ืืช ื”ืชื•ื›ืŸ ืฉืœ ืงื•ื‘ืฅ ื ืชื•ืŸ ืœืงื•ื“ ืื•ื‘ื™ื™ืงื˜
ื›ืš ืฉื ื™ืชืŸ ืœื’ืฉืช ืืœื™ื• ื‘ื–ืžืŸ ืจื™ืฆื” ืขื ื”ืžื˜ืคืœ ื‘ืคืจื•ื˜ื•ืงื•ืœ ื”ืœื™ื‘ื” as ื”ืœื™ื‘ื”:/ืžึทืฉืืึธื‘-
ืฉื. ืฉื™ื ืœื‘ ืฉ ืฉื ืžืฉืื‘ ื”ื•ื ืฉื ื”ืžืฉืื‘ ื›ืคื™ ืฉื ืžืฆื ื‘ื–ืžืŸ ืจื™ืฆื”; ืœ
ืœืžืฉืœ, ื–ื” ื™ื›ื•ืœ ืœืฉืžืฉ ื‘ืงืจื™ืื” ืืœ "ResourceBundle.getBundle". ื”ืงื•ื‘ืฅ ื‘ืคื•ืขืœ
ื™ืฉ ืœืฆื™ื™ืŸ ื‘ื ืคืจื“ ืฉื ืฉื™ื™ืขืจืš ื‘ื“ืจืš ื–ื•.

-ftarget=ื’ึดืจึฐืกึธื”
ื–ื” ื™ื›ื•ืœ ืœืฉืžืฉ ืขื -C ื›ื“ื™ ืœื‘ื—ื•ืจ ืืช ื”ื’ืจืกื” ืฉืœ bytecode ืฉื ืคืœื˜ ืขืœ ื™ื“ื™ gcj. ื”
ื‘ืจื™ืจืช ื”ืžื—ื“ืœ ื”ื™ื 1.5. ื›ืืฉืจ ืœื ื™ื•ืฆืจ bytecode, ืœืืคืฉืจื•ืช ื–ื• ืื™ืŸ ื”ืฉืคืขื”.

-d ื‘ืกืคืจื™ื™ื”
ื›ืืฉืจ ื ืขืฉื” ืฉื™ืžื•ืฉ ืขื "-C", ื–ื” ื’ื•ืจื ืœื™ืฆื™ืจืช ื›ืœ .ืžืขืžื“ ืงื‘ืฆื™ื ืฉื™ืฉ ืœืฉื™ื ื‘-
ืกืคืจื™ื™ืช ืžืฉื ื” ืžืชืื™ืžื” ืฉืœ ื‘ืกืคืจื™ื™ื”. ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ื”ื ื™ื•ื›ื ืกื• ืœืชื™ืงื™ื•ืช ืžืฉื ื”
ืฉืœ ืกืคืจื™ื™ืช ื”ืขื‘ื•ื“ื” ื”ื ื•ื›ื—ื™ืช.

-fno-bounds-check
ื›ื‘ืจื™ืจืช ืžื—ื“ืœ, gcj ื™ื•ืฆืจ ืงื•ื“ ืฉื‘ื•ื“ืง ืืช ื”ื’ื‘ื•ืœื•ืช ืฉืœ ื›ืœ ืื™ื ื“ืงืก ื”ืžืขืจืš
ืคืขื•ืœื•ืช. ืขื ืืคืฉืจื•ืช ื–ื•, ื‘ื“ื™ืงื•ืช ืืœื• ืžื•ืฉืžื˜ื•ืช, ืžื” ืฉื™ื›ื•ืœ ืœืฉืคืจ ืืช ื”ื‘ื™ืฆื•ืขื™ื
ืขื‘ื•ืจ ืงื•ื“ ืฉืžืฉืชืžืฉ ื‘ืžืขืจื›ื™ื ื‘ืื•ืคืŸ ื ืจื—ื‘. ืฉื™ื ืœื‘ ืฉื–ื” ื™ื›ื•ืœ ืœื’ืจื•ื ืœื‘ืœืชื™ ืฆืคื•ื™
ื”ืชื ื”ื’ื•ืช ืื ื”ืงื•ื“ ื”ืžื“ื•ื‘ืจ ืื›ืŸ ืžืคืจ ืืช ืื™ืœื•ืฆื™ ื’ื‘ื•ืœื•ืช ื”ืžืขืจืš. ื–ื”
ื‘ื˜ื•ื— ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ืืชื” ื‘ื˜ื•ื— ืฉื”ืงื•ื“ ืฉืœืš ืœืขื•ืœื ืœื ื™ื–ืจื•ืง
"ืื™ื ื“ืงืก ืžืขืจืš ืžื—ื•ืฅ ืœืชื—ื•ื Exception".

-fno-store-check
ืืœ ืชื™ืฆื•ืจ ื‘ื“ื™ืงื•ืช ื—ื ื•ืช ืžืขืจืš. ื‘ืขืช ืื—ืกื•ืŸ ืื•ื‘ื™ื™ืงื˜ื™ื ื‘ืžืขืจื›ื™ื, ื‘ื“ื™ืงืช ื–ืžืŸ ืจื™ืฆื”
ื ื•ืฆืจ ื‘ื“ืจืš ื›ืœืœ ืขืœ ืžื ืช ืœื”ื‘ื˜ื™ื— ืฉื”ืื•ื‘ื™ื™ืงื˜ ืชื•ืื ืœื”ืงืฆืื”
ืกื•ื’ ื”ืจื›ื™ื‘ ืฉืœ ื”ืžืขืจืš (ืฉืื•ืœื™ ืœื ื™ื“ื•ืข ื‘ื–ืžืŸ ื”ื”ื™ื“ื•ืจ). ืขื ื–ื”
ืืคืฉืจื•ืช, ื‘ื“ื™ืงื•ืช ืืœื• ืžื•ืฉืžื˜ื•ืช. ื–ื” ื™ื›ื•ืœ ืœืฉืคืจ ืืช ื”ื‘ื™ืฆื•ืขื™ื ืขื‘ื•ืจ ืงื•ื“ ืฉืžืื—ืกืŸ
ืื•ื‘ื™ื™ืงื˜ื™ื ืœืชื•ืš ืžืขืจื›ื™ื ืœืขืชื™ื ืงืจื•ื‘ื•ืช. ื–ื” ื‘ื˜ื•ื— ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ืื ืืชื” ื‘ื˜ื•ื— ืฉืœืš
ืงื•ื“ ืœืขื•ืœื ืœื ื™ื–ืจื•ืง "ArrayStoreException".

-ื’'ื ื™
ืขื gcj ื™ืฉื ืŸ ืฉืชื™ ืืคืฉืจื•ื™ื•ืช ืœื›ืชื™ื‘ืช ืฉื™ื˜ื•ืช ืžืงื•ืจื™ื•ืช: CNI ื•-JNI. ื›ื‘ืจื™ืจืช ืžื—ื“ืœ
gcj ืžื ื™ื— ืฉืืชื” ืžืฉืชืžืฉ ื‘-CNI. ืื ืืชื” ืžืจื›ื™ื‘ ืžื—ืœืงื” ืขื ืฉื™ื˜ื•ืช ืžืงื•ืจื™ื•ืช, ื•
ืฉื™ื˜ื•ืช ืืœื• ืžื™ื•ืฉืžื•ืช ื‘ืืžืฆืขื•ืช JNI, ืื– ืขืœื™ืš ืœื”ืฉืชืžืฉ ื‘-"-fjni". ืืคืฉืจื•ืช ื–ื•
ื’ื•ืจืžื™ื gcj ื›ื“ื™ ืœื™ืฆื•ืจ ื‘ื•ืœื™ื ืฉื™ืคืขื™ืœื• ืืช ืฉื™ื˜ื•ืช ื”-JNI ื”ื‘ืกื™ืกื™ื•ืช.

-fno-assert
ืืœ ืชื–ื”ื” ืืช ืžื™ืœืช ื”ืžืคืชื— "ื˜ืขื ื”". ื–ื” ื ื•ืขื“ ืœืชืื™ืžื•ืช ืขื ื’ืจืกืื•ืช ื™ืฉื ื•ืช ื™ื•ืชืจ
ืฉืœ ืžืคืจื˜ ื”ืฉืคื”.

-fno-optimize-static-class-initialization
ื›ืืฉืจ ืจืžืช ื”ืื•ืคื˜ื™ืžื™ื–ืฆื™ื” ื’ื“ื•ืœื” ืื• ืฉื•ื•ื” ืœ-"-O2", gcj ื™ื ืกื” ืœื™ื™ืขืœ ืืช
ื“ืจืš ืงืจื™ืื•ืช ืœืชื•ืš ื–ืžืŸ ื”ืจื™ืฆื” ืžืชื‘ืฆืขื•ืช ื›ื“ื™ ืœืืชื—ืœ ืžื—ืœืงื•ืช ืกื˜ื˜ื™ื•ืช ื‘ืฉื™ืžื•ืฉ ื”ืจืืฉื•ืŸ ื‘ื”ืŸ
(ืื•ืคื˜ื™ืžื™ื–ืฆื™ื” ื–ื• ืœื ืžืชื‘ืฆืขืช ืื ืฆื•ื™ืŸ "-C") ื‘ืขืช ื”ื™ื“ื•ืจ ืœืžืงื•ืจื™
ืงื•ื“, "-fno-optimize-static-class-initialization" ื™ื›ื‘ื” ืืช ื”ืื•ืคื˜ื™ืžื™ื–ืฆื™ื” ื”ื–ื•,
ืœืœื ืงืฉืจ ืœืจืžืช ื”ืื•ืคื˜ื™ืžื™ื–ืฆื™ื” ื‘ืฉื™ืžื•ืฉ.

--disable-assertions[=ื›ื™ืชื” ืื• ื—ื‘ื™ืœื”]
ืืœ ืชื›ืœื•ืœ ืงื•ื“ ืœื‘ื“ื™ืงืช ืงื‘ื™ืขื•ืช ื‘ืงื•ื“ ื”ืงื•ืžืคื™ืœืฆื™ื”. ืื
"=ื›ื™ืชื” ืื• ื—ื‘ื™ืœื”" ื—ืกืจ ืžืฉื‘ื™ืช ืืช ื™ืฆื™ืจืช ืงื•ื“ ื”ื˜ืขื ื” ืขื‘ื•ืจ ื›ืœ ื”ืžื—ืœืงื•ืช,
ืืœื ืื ื›ืŸ ื“ื’ืœ "--enable-assertions" ืกืคืฆื™ืคื™ ื™ื•ืชืจ. ืื ื›ื™ืชื” ืื• ื—ื‘ื™ืœื”
ื”ื•ื ืฉื ืžื—ืœืงื”, ืžืฉื‘ื™ืช ืจืง ื™ืฆื™ืจืช ื‘ื“ื™ืงื•ืช ื”ืฆื”ืจื•ืช ื‘ืชื•ืš ื”ืžื—ืœืงื” ื‘ืขืœืช ื”ืฉื ืื•
ื”ืžืขืžื“ื•ืช ื”ืคื ื™ืžื™ื™ื ืฉืœื•. ืื ื›ื™ืชื” ืื• ื—ื‘ื™ืœื” ื”ื•ื ืฉื ื—ื‘ื™ืœื”, ืžืฉื‘ื™ืช ืืช ื”ื™ืฆื™ืจื”
ื‘ื“ื™ืงื•ืช ื”ืฆื”ืจื•ืช ื‘ืชื•ืš ื”ื—ื‘ื™ืœื” ื‘ืขืœืช ื”ืฉื ืื• ื—ื‘ื™ืœืช ืžืฉื ื”.

ื›ื‘ืจื™ืจืช ืžื—ื“ืœ, ื”ืฆื”ืจื•ืช ืžื•ืคืขืœื•ืช ื‘ืขืช ื™ืฆื™ืจืช ืงื‘ืฆื™ ืžื—ืœืงื” ืื• ื›ืืฉืจ ืœื ืžื‘ืฆืขื™ื ืื•ืคื˜ื™ืžื™ื–ืฆื™ื”,
ื•ืžื•ืฉื‘ืช ื‘ืขืช ื™ืฆื™ืจืช ืงื‘ืฆื™ื ื‘ื™ื ืืจื™ื™ื ืื•ืคื˜ื™ืžืœื™ื™ื.

--enable-assertions[=ื›ื™ืชื” ืื• ื—ื‘ื™ืœื”]
ื™ื•ืฆืจ ืงื•ื“ ืœื‘ื“ื™ืงืช ื”ืฆื”ืจื•ืช. ืื•ืœื™ ื”ืฉื ืฉื’ื•ื™ ืฉืœ ื”ืืคืฉืจื•ืช, ื›ืคื™ ืฉืืชื” ืขื“ื™ื™ืŸ ืฆืจื™ืš
ื›ื“ื™ ืœื”ืคืขื™ืœ ื‘ื“ื™ืงืช ื”ืฆื”ืจื•ืช ื‘ื–ืžืŸ ืจื™ืฆื”, ื•ืื ื—ื ื• ืœื ืชื•ืžื›ื™ื ื‘ืฉื•ื ื“ืจืš ืงืœื” ืœืขืฉื•ืช ื–ืืช
ื–ึถื”. ืื– ื”ื“ื’ืœ ื”ื–ื” ืขื“ื™ื™ืŸ ืœื ืžืื•ื“ ืฉื™ืžื•ืฉื™, ืžืœื‘ื“ ืœืขืงื•ืฃ ื—ืœืงื™ืช
"--ื‘ื˜ืœ-ื”ืฆื”ืจื•ืช".

-finddirect-dispatch
gcj ื™ืฉ ABI ืชืื™ืžื•ืช ื‘ื™ื ืืจื™ืช ืžื™ื•ื—ื“ืช, ืืฉืจ ืžื•ืคืขืœืช ืขืœ ื™ื“ื™
ืืคืฉืจื•ืช "-findirect-dispatch". ื‘ืžืฆื‘ ื–ื”, ื”ืงื•ื“ ืฉื ื•ืฆืจ ืขืœ ื™ื“ื™ gcj ืžื›ื‘ื“ ืืช
ืขืจื‘ื•ื™ื•ืช ืชืื™ืžื•ืช ื‘ื™ื ืืจื™ืช ื‘ืžืคืจื˜ ืฉืคืช Java, ื•ื”ืžืชืงื‘ืœื•ืช ืžื›ืš
ืงื•ื‘ืฆื™ ืื•ื‘ื™ื™ืงื˜ ืื™ื ื ืฆืจื™ื›ื™ื ืœื”ื™ื•ืช ืžืงื•ืฉืจื™ื ื™ืฉื™ืจื•ืช ื›ื ื’ื“ ื”ืชืœื•ืช ืฉืœื”ื. ื‘ืžืงื•ื ื–ืืช,
ื›ืœ ื”ืชืœื•ืช ื ื‘ื“ืงืช ื‘ื–ืžืŸ ื”ืจื™ืฆื”. ื–ื” ืžืืคืฉืจ ืขืจื‘ื•ื‘ ื—ื•ืคืฉื™ ืฉืœ ืžืชืคืจืฉื™ื ื•
ืงื•ื“ ืงื•ืžืคื™ืœื“.

ืฉื™ืžื• ืœื‘ ืฉื›ืจื’ืข ื ื™ืชืŸ ืœื”ืฉืชืžืฉ ื‘-"-findirect-dispatch" ืจืง ื‘ืขืช ื”ื™ื“ื•ืจ .ืžืขืžื“
ืงื‘ืฆื™ื. ื–ื” ืœื ื™ืขื‘ื•ื“ ื‘ืขืช ืงื•ืžืคื™ืœืฆื™ื” ืžืžืงื•ืจ. CNI ื’ื ืขื“ื™ื™ืŸ ืœื ืขื•ื‘ื“ ืขื
ื”ืชืื™ืžื•ืช ื”ื‘ื™ื ืืจื™ืช ABI. ืžื’ื‘ืœื•ืช ืืœื• ื™ื•ืกืจื• ื‘ืขืชื™ื“
ืœืฉื—ืจืจ.

ืขื ื–ืืช, ืื ืืชื” ืžื”ื“ืจ ืงื•ื“ CNI ืขื ื”-ABI ื”ืกื˜ื ื“ืจื˜ื™, ืืชื” ื™ื›ื•ืœ ืœืงืจื•ื ืœื• ืžืงื•ื“
ื ื‘ื ื” ืขื ABI ื”ืชืื™ืžื•ืช ื”ื‘ื™ื ืืจื™ืช.

-fbootstrap-classes
ื ื™ืชืŸ ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื• ื›ื“ื™ ืœื•ืžืจ ืœ-"libgcj" ืฉื™ืฉ ืœื˜ืขื•ืŸ ืืช ื”ืžื—ืœืงื•ืช ื”ืงื•ืžืคื™ืœื™ื•ืช ืขืœ ื™ื“ื™
ืžื˜ืขื™ืŸ ื”ืืชื—ื•ืœ, ืœื ืžื˜ืขื™ืŸ ืžื—ืœืงืช ื”ืžืขืจื›ืช. ื›ื‘ืจื™ืจืช ืžื—ื“ืœ, ืื ืืชื” ืงื•ืžืคืœื•ืจ ืžื—ืœืงื”
ื•ืœืงืฉืจ ืื•ืชื• ืœืงื•ื‘ืฅ ื”ืคืขืœื”, ื”ื•ื ื™ื˜ื•ืคืœ ื›ืื™ืœื• ื”ื•ื ื ื˜ืขืŸ ื‘ืืžืฆืขื•ืช ื”-
ืžื˜ืขื™ืŸ ืžื—ืœืงื•ืช ืžืขืจื›ืช. ื–ื” ื ื•ื—, ืฉื›ืŸ ื–ื” ืื•ืžืจ ืฉื“ื‘ืจื™ื ื›ืžื•
"Class.forName()" ื™ื—ืคืฉ CLASSPATH ื›ื“ื™ ืœืžืฆื•ื ืืช ื”ื›ื™ืชื” ื”ืจืฆื•ื™ื”.

-ื”ืฉืชืงืคื•ืช-freduced
ืืคืฉืจื•ืช ื–ื• ื’ื•ืจืžืช ืœืงื•ื“ ืฉื ื•ืฆืจ ืขืœ ื™ื“ื™ gcj ืœื”ื›ื™ืœ ื›ืžื•ืช ืžื•ืคื—ืชืช ืฉืœ ื”ื›ื™ืชื”
ืžื˜ื-ื ืชื•ื ื™ื ื”ืžืฉืžืฉื™ื ืœืชืžื™ื›ื” ื‘ืฉื™ืงื•ืฃ ื–ืžืŸ ืจื™ืฆื”. ื”ืขืœื•ืช ืฉืœ ื—ื™ืกื›ื•ืŸ ื–ื” ื”ื•ื ืื•ื‘ื“ืŸ ืฉืœ
ื”ื™ื›ื•ืœืช ืœื”ืฉืชืžืฉ ื‘ื™ื›ื•ืœื•ืช ื”ืฉืชืงืคื•ืช ืžืกื•ื™ืžื•ืช ืฉืœ ื–ืžืŸ ื”ืจื™ืฆื” ื”ืกื˜ื ื“ืจื˜ื™ ืฉืœ Java
ืกื‘ื™ื‘ื”. ื›ืืฉืจ ืžื’ื“ื™ืจื™ื ืืช ื›ืœ ื”ืžื˜ื-ื ืชื•ื ื™ื ืคืจื˜ ืœื–ื” ืฉื ื“ืจืฉ ื›ื“ื™ ืœื”ืฉื™ื’ ื ื›ื•ืŸ
ืกืžื ื˜ื™ืงื” ืฉืœ ื–ืžืŸ ืจื™ืฆื” ืžื‘ื•ื˜ืœืช.

ืขื‘ื•ืจ ืงื•ื“ ืฉืื™ื ื• ืžืฉืชืžืฉ ื‘ืจืคืœืงืฆื™ื” (ื›ืœื•ืžืจ ืกืจื™ืืœื™ื–ืฆื™ื”, RMI, CORBA ืื• ืฉื™ื˜ื•ืช ืงืจื™ืื”
ื‘ื—ื‘ื™ืœืช "java.lang.reflect", "-freduced-reflection" ื™ื’ืจื•ื ืœืชืงื™ื ื•ืช
ืคืขื•ืœื” ืขื ื—ื™ืกื›ื•ืŸ ื‘ื’ื•ื“ืœ ืงื•ื“ ื”ื”ืคืขืœื”.

JNI ("-fjni") ื•-ABI ื”ืชืื™ืžื•ืช ื”ื‘ื™ื ืืจื™ืช ("-findirect-dispatch") ืœื ืขื•ื‘ื“ื™ื
ื›ืจืื•ื™ ืœืœื ืžื˜ื-ื ืชื•ื ื™ื ืžืœืื™ื. ื‘ื’ืœืœ ื–ื”, ื–ื• ืฉื’ื™ืื” ืœืฉื™ืžื•ืฉ
ืืคืฉืจื•ื™ื•ืช ืืœื” ืขื "-freduced-reflection".

ื–ึฐื”ึดื™ืจื•ึผืช: ืื ืื™ืŸ ืžื˜ื-ื ืชื•ื ื™ื ืฉื™ืงื•ืฃ, ืงื•ื“ ื”ืžืฉืชืžืฉ ื‘-"SecurityManager" ืขืฉื•ื™
ืœื ืขื•ื‘ื“ ื›ืžื• ืฉืฆืจื™ืš. ื’ื ืงืจื™ืื” ืœ-"Class.forName()" ืขืœื•ืœื” ืœื”ื™ื›ืฉืœ ืื ืœืฉื™ื˜ืช ื”ืงืจื™ืื” ื™ืฉ
ืื™ืŸ ืžื˜ื-ื ืชื•ื ื™ื ื”ืฉืชืงืคื•ืช.

ืงื‘ืข-ื–ืžืŸ ืืคืฉืจื•ื™ื•ืช
ื›ืžื” gcj ืืคืฉืจื•ื™ื•ืช ื™ืฆื™ืจืช ื”ืงื•ื“ ืžืฉืคื™ืขื•ืช ืขืœ ื”-ABI ื”ืžืชืงื‘ืœ, ื•ื›ืš ื™ื›ื•ืœ ืœื”ื™ื•ืช ืจืง
ื ื™ืชืŸ ื‘ืื•ืคืŸ ืžืฉืžืขื•ืชื™ ื›ืืฉืจ "libgcj", ื—ื‘ื™ืœืช ื–ืžืŸ ื”ืจื™ืฆื”, ืžื•ื’ื“ืจืช. "libgcj" ืฉื ืืช
ืืคืฉืจื•ื™ื•ืช ืžืชืื™ืžื•ืช ืžืงื‘ื•ืฆื” ื–ื• ืœืชื•ืš ื ืžืคืจื˜ ืงื•ื‘ืฅ ืฉื ืงืจื ืขืœ ื™ื“ื™ gcj. ื”ืืคืฉืจื•ื™ื•ืช ื”ืœืœื•
ืจืฉื•ืžื™ื ื›ืืŸ ืœืฉืœืžื•ืช; ืื ืืชื” ืžืฉืชืžืฉ ื‘-"libgcj" ืื– ืœื ืชืจืฆื” ืœื’ืขืช
ืืคืฉืจื•ื™ื•ืช ืืœื”.

-fuse-boehm-gc
ื–ื” ืžืืคืฉืจ ืฉื™ืžื•ืฉ ื‘ืงื•ื“ ืกื™ืžื•ืŸ ืžืคืช ืกื™ื‘ื™ื•ืช ืฉืœ Boehm GC. ื‘ืžื™ื•ื—ื“ ื–ื” ื’ื•ืจื
gcj ืœื”ื›ื ื™ืก ืžืชืืจ ืกื™ืžื•ืŸ ืื•ื‘ื™ื™ืงื˜ื™ื ืœื›ืœ vtable.

-fhash-ืกื ื›ืจื•ืŸ
ื›ื‘ืจื™ืจืช ืžื—ื“ืœ, ื ืชื•ื ื™ ืกื ื›ืจื•ืŸ (ื”ื ืชื•ื ื™ื ื”ืžืฉืžืฉื™ื ืœ"ืกื ื›ืจื•ืŸ", "ื”ืžืชื ื”" ื•
"ืœื”ื•ื“ื™ืข") ืžืฆื‘ื™ืข ืขืœ ื™ื“ื™ ืžื™ืœื” ื‘ื›ืœ ืื•ื‘ื™ื™ืงื˜. ืขื ื”ืืคืฉืจื•ืช ื”ื–ื• gcj ืžื ื™ื— ืืช ื–ื”
ืžื™ื“ืข ื–ื” ืžืื•ื—ืกืŸ ื‘ื˜ื‘ืœืช hash ื•ืœื ื‘ืื•ื‘ื™ื™ืงื˜ ืขืฆืžื•.

-ืชืช-ืฉื’ืจื”-ืœื ืชื™ืš-ื—ืœื•ืงื”
ื‘ืžืขืจื›ื•ืช ืžืกื•ื™ืžื•ืช, ืฉื’ืจืช ืกืคืจื™ื™ื” ื ืงืจืืช ืœื‘ืฆืข ื—ืœื•ืงืช ืžืกืคืจื™ื ืฉืœืžื™ื. ื–ื”
ื ื“ืจืฉ ื›ื“ื™ ืœืงื‘ืœ ื˜ื™ืคื•ืœ ื—ืจื™ื’ ื ื›ื•ืŸ ื›ืืฉืจ ืžื—ืœืงื™ื ื‘ืืคืก.

-fcheck-references
ื‘ืžืขืจื›ื•ืช ืžืกื•ื™ืžื•ืช ื™ืฉ ืฆื•ืจืš ืœื”ื›ื ื™ืก ื‘ื“ื™ืงื•ืช ืžื•ื˜ื‘ืขื•ืช ื‘ื›ืœ ืคืขื ืฉื ื™ื’ืฉื™ื ืœืื•ื‘ื™ื™ืงื˜
ื‘ืืžืฆืขื•ืช ื”ืคื ื™ื”. ื‘ืžืขืจื›ื•ืช ืื—ืจื•ืช ืœื ืชื–ื“ืงืง ืœื–ื” ื›ื™ ืžืฆื‘ื™ืข null ื ื™ื’ืฉ
ื ืชืคืกื™ื ืื•ื˜ื•ืžื˜ื™ืช ืขืœ ื™ื“ื™ ื”ืžืขื‘ื“.

-ืคื™ื•ื–-ืื˜ื•ืžื™-ืžื‘ื ื™ื
ื‘ืžืขืจื›ื•ืช ืžืกื•ื™ืžื•ืช, GCC ื™ื›ื•ืœ ืœื™ืฆื•ืจ ืงื•ื“ ืขื‘ื•ืจ ืคืขื•ืœื•ืช ืื˜ื•ืžื™ื•ืช ืžื•ื‘ื ื•ืช. ื”ืฉืชืžืฉ ื‘ื–ื”
ืืคืฉืจื•ืช ืœืืœืฅ ืืช gcj ืœื”ืฉืชืžืฉ ื‘ืจื›ื™ื‘ื™ื ื”ืžื•ื‘ื ื™ื ื”ืœืœื• ื‘ืขืช ื”ื™ื“ื•ืจ ืงื•ื“ Java. ืื™ืคื” ื–ื”
ื™ื›ื•ืœืช ืงื™ื™ืžืช ื”ื™ื ืืžื•ืจื” ืœื”ื™ื•ืช ืžื–ื•ื”ื” ืื•ื˜ื•ืžื˜ื™ืช, ื›ืš ืฉื‘ื“ืจืš ื›ืœืœ ืœื ืชื–ื“ืงืง ืœื”
ื›ื“ื™ ืœื”ืฉืชืžืฉ ื‘ืืคืฉืจื•ืช ื–ื•.

ื”ืฉืชืžืฉ ื‘-powerpc-linux-gnu-gcj-5 ื‘ืื•ืคืŸ ืžืงื•ื•ืŸ ื‘ืืžืฆืขื•ืช ืฉื™ืจื•ืชื™ onworks.net


ืฉืจืชื™ื ื•ืชื—ื ื•ืช ืขื‘ื•ื“ื” ื‘ื—ื™ื ื

ื”ื•ืจื“ ืืคืœื™ืงืฆื™ื•ืช Windows & Linux

ืคืงื•ื“ื•ืช ืœื™ื ื•ืงืก

Ad