gdc(1) D Front End for GCC


Option Summary

Only the new options are listed here; gdc accepts mostly the same options as gcc. Most of these have both positive and negative forms; the negative form of -ffoo would be -fno-foo. This manual documents only one of these two forms, whichever one is not the default.
D Language Options
Compile release version.
Compile in unittest code.
Generate runtime code for assert()'s.
Turns off array bounds checking for all functions.
With -g, generate C debug information.
Allow use of deprecated features.
Print information about D language processing to stdout.
Compile as D language version 1.
List all variables going into thread local storage.
Ignore unsupported pragmas.
Control template emission. These are the supported options:
Emit templates, expecting multiple copies to be merged by the linker.
Emits templates, but only if the compiler determines that it needs to.
Emit templates, but make them private to the translation unit. The executable will have multiple copies of code and data.
Do not emit templates at all.
For targets that support templates, the "all" mode is used. Otherwise, the "private" mode is used.
Compile in debug code into the program. These are supported options:
Compile in debug code <= level.
Compile in debug code identified by ident.
Write module dependencies to filename.
Process all modules specified on the command line, but only generate code for the module specified by the argument.
Compile in version code >= level or identified by ident.
Generate D interface files.
Write D interface files to directory.
Write D interface file to filename.
Generate documentation.
Write documentation file in directory.
Write documentation file to filename.
Include a Ddoc macro file.
Write JSON file to filename.
Dump decoded UTF-8 text and source from HTML.