GDC(1) GNU GDC(1) (NAME) gdc - GCC D (SYNOPSIS) gdc [-c|-S] [-g] [-pg] [-Olevel] [-Wwarn...] [-Idir...] [-Ldir...] [-foption...] [-mmachine-option...] [-o outfile] [@file] infile... . (DESCRIPTION) gdc D gcc . gdc . (OPTIONS) (Input and Output files) . : file.d D. file.dd Ddoc. file.di D. gdc . "-o file" file . "-S" "-c" . D (import) . "-H" gdc D . import .di .d . Ddoc D . HTML . .d "Ddoc" D. (Runtime Options) gdc . -fall-instantiations (template instantiations). ( "__traits(compiles, ...)") . -fno-assert "assert" . -fno-bounds-check . . "RangeError" . -fbounds-check=value -fbounds-check . : on . safeonly @safe . off . -fno-builtin (built-in) __builtin_ . "core.stdc" . -fcheckaction=value (assertion) final switch . : context "AssertError" . halt . throw "AssertError" ( ). -fdebug -fdebug=value "debug" . -fdebug 1 -fdebug= "debug" : ident "debug" ident . -fno-druntime . D . : gdc -nophoboslib -fno-exceptions -fno-moduleinfo -fno-rtti -fextern-std=standard C++ standard . : c++98 c++03 "__traits(getTargetInfo, "cppStd")" 199711 . c++11 "__traits(getTargetInfo, "cppStd")" 201103 . c++14 "__traits(getTargetInfo, "cppStd")" 201402 . c++17 "__traits(getTargetInfo, "cppStd")" 201703 . . c++20 "__traits(getTargetInfo, "cppStd")" 202002 . c++23 "__traits(getTargetInfo, "cppStd")" 202302 . -finclude-imports (imported) . libphobos . -fno-invariants ("invariant") . -fmain main() . (unittests) . "main" . -fno-moduleinfo "ModuleInfo" D . ("static this" "static ~this") "unittest" "DSO" . -fonly=filename filename . -fno-postconditions "out" . -fno-preconditions "in" . -fpreview=id D id . : all D . bitfields (bit-fields) D . dip1000 ( / Scoped pointers) . dip1008 ( @nogc) . dip1021 ( ) . dip25 ( / Sealed references) . dtorfields . fieldwise . fixaliasthis "alias this" . fiximmutableconv . in "in" "scope const [ref]" rvalue . inclusiveincontracts "in" . nosharedaccess . rvaluerefparam rvalue "ref" . systemvariables @system @safe . -frelease (release) assert . @system @trusted assertion . : gdc -fno-assert -fbounds-check=safe -fno-invariants \ -fno-postconditions -fno-preconditions -fno-switch-errors -frevert= D id () . : all D . dip1000 ( ) . dip25 ( ) . dtorfields . intpromote C "+" "-" "~" . -fno-rtti (RTTI) . . -fno-switch-errors "final switch" . "SwitchError" . -fswitch-errors . -funittest "unittest" version(unittest) . -fassert . -fversion=value "version" : ident "version" ident . -fno-weak-templates (weak symbols) . . COMDAT . (Options for Directory Search) : -Idir . -I . -Jdir (string imports) . import(file) . -J . -Ldir gcc. -Bdir gcc. -fmodule-file=module=spec module spec D . . : gdc test.d -fmodule-file=A.B=foo.d -fmodule-file=C=bar A.B foo.d C bar/ D : module test; import A.B; // Matches A.B, searches for foo.d import C.D.E; // Matches C, searches for bar/D/E.d import A.B.C; // No match, searches for A/B/C.d -imultilib dir dir gcc D . -iprefix prefix prefix gcc D . prefix '/' . -nostdinc D. -I ( ) . (Code Generation) gcc gdc . -H D . .di . -Hd dir -H dir . -Hf file . -Hf file -H file . -Hd dir . -M make. make . -MM -M D . -MF file -M -MM file . -MD -MMD -MF . -MG gcc . -MP (phony target) . -MT target (target) . -MT -MT . -MQ target -MT make (quote) . -MD -M -MF file . file .deps . -MMD -MD D . -X JSON . file .json . -Xf file -X JSON file . -fdoc "Ddoc" . .html file . -fdoc-dir=dir -fdoc dir . -fdoc-file=file . -fdoc-file=file -fdoc file . -fdoc-dir=dir . -fdoc-inc=file file Ddoc . -fdoc-inc . -fdump-c++-spec=file D C++ file . -fdump-c++-spec-verbose -fdump-c++-spec= C++ . -fsave-mixins=file "mixin" D file . . (Warnings) . -Werror . -Wall . D . -Walloca "alloca" . -Walloca-larger-than=n alloca alloca n . -Wno-alloca-larger-than -Walloca-larger-than -Walloca-larger-than=SIZE_MAX . -Wno-builtin-declaration-mismatch . -Wcast-result (cast) (null) . D C++ . -Wno-deprecated "deprecated" . -Werror . -Wextra -Wall . -Waddress -Wcast-result -Wmismatched-special-enum -Wunknown-pragmas -Wmismatched-special-enum (enum) . -Wspeculative "__traits(compiles, ...)" . -Werror . -Wunknown-pragmas pragma() gdc . -fignore-unknown-pragmas D . -Wno-varargs "va_start" . -fno-ignore-unknown-pragmas . pragma() D . . -fmax-errors=n n gdc . n 0 () . -fsyntax-only . -fdoc -H . -ftransition=id D id . : all D. complex . field . in "in" . nogc (GC). templates . tls (Thread Local Storage) . (Options for Linking) . . -defaultlib=libname libphobos . libphobos -static-libphobos -shared-libphobos . -debuglib=libname libphobos . -g . libphobos -static-libphobos -shared-libphobos . -nophoboslib Phobos D . libphobos -static-libphobos -shared-libphobos . -nostdlib -nodefaultlibs . -shared-libphobos libgphobos libgdruntime . . -static-libphobos libgphobos libgdruntime . . (Developer Options) . -fdump-d-original (AST) "semantic3". GNU D . -v . "parse" "semantic" "semantic2" "semantic3" "import" "function" . (SEE ALSO) gpl(7) gfdl(7) fsf-funding(7) gcc(1) Info gdc gcc. (COPYRIGHT) (c) 2006-2026 (Free Software Foundation, Inc.) / << >> (GNU Free Documentation License) 1.3 . gfdl(7) . gcc-16 2026-08-10 GDC(1)