---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dmd

> Official D compiler.
> More information: <https://dlang.org/dmd-windows.html>.

- Build a D source file:

`dmd {{path/to/source.d}}`

- Generate code for all template instantiations:

`dmd -allinst`

- Control bounds checking:

`dmd -boundscheck={{on|safeonly|off}}`

- List information on all available checks:

`dmd -check={{h|help|?}}`

- Turn on colored console output:

`dmd -color`
