All apps/DMD

DMD

dmd

DMD is the reference compiler for the D programming language.

Runs as dmd|macOS, Linux|dlang.org

Command form

ai-draft · 3 tasks · 15 fields

Compile D sources with the DMD reference compiler. Import paths, version identifiers, -run, -check and -preview switches are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui dmd
Compile D codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Source files*
file
Output file name
file
Symbolic debug info
-g
TasksEach one presets the form for one job
Debug build
sourcesoutputdebug_info
Optimized release build
sourcesoutputoptimizereleaseinline
Run unit tests
sourcesunittestmain
ParametersOnly these flags are editable in the form
Source files
path · positional 0 · repeatable
Output file name
Written as -of<name>.
path
-of
Compile only (no link)
boolean
-c
Optimize
boolean
-O
Release build
No asserts or contract checks.
boolean
-release
Inline functions
boolean
-inline
Symbolic debug info
boolean
-g
Compile debug code
boolean
-debug
Compile unit tests
boolean
-unittest
Add default main()
boolean
-main
Warnings as errors
boolean
-w
Warnings as messages
boolean
-wi
Build a library
boolean
-lib
Build a shared library
boolean
-shared
BetterC mode
boolean
-betterC
SourcesEvery flag above is checked against these
man
-betterC omit generating some runtime information and helper functions -c compile only, do not link -debug compile in debug code -g add symbolic debug info -inline do function inlining -lib generate library rather than object files -main add default main() if not present already (e.g. for unittesting) -O optimize -of=<filename> nam…
manual

github.com

Before it fills your prompt, Otty checks the installed dmd against its version. A form that does not match your version is not offered.