Next: , Previous: Grades and grade components, Up: Compilation model options   [Contents][Index]

9.8.2 Target options

--target c (grades: none, reg, asm_fast, hlc)
--csharp, --target csharp (grades: csharp)
--java, --target java (grades: java)

Specify the target language used for compilation: C, C# or Java. C means ANSI/ISO C, optionally with GNU C extensions (see below). Targets other than C imply ‘--high-level-code’.


An abbreviation for ‘--target c --target-code-only’. Generate C code in module.c, but do not invoke the C compiler to generate object code.


An abbreviation for ‘--target csharp --target-code-only’. Generate C# code in module.cs, but do not invoke the C# compiler to produce CIL bytecode.


An abbreviation for ‘--target java --target-code-only’. Generate Java code in, but do not invoke the Java compiler to produce Java bytecode.