Sign inSign up

logicfish/dmd

By logicfish

Updated almost 6 years ago

DMD compiler

Image
0

574

logicfish/dmd repository overview

Docker pulls Docker Build Latest Tag

docker-dmd

Docker Image for DMD the Digital Mars D Compiler.

Motivation

Installation of a compiler sometimes is cumbersome. This Docker image should take this pain and allow you to easily switch between Versions of the same compiler and even different compilers.

In case a native installation is required, curl -fsS https://dlang.org/install.sh | bash -s dmd could be used.

Other Compilers

Allows to use all major D Compilers without installation.

CompilerLatest Tag
DMDLatest Tag
LDCLatest Tag
GDCLatest Tag

Usage

Place a test.d in your current directory.

import std.stdio;

void main() {
    writeln("Hello, World!");
}

Then execute

docker run --rm -ti -v $(pwd):/src dlanguage/dmd dmd -run test.d

This should plot:

Hello, World!

Tag summary

Content type

Image

Digest

Size

161.4 MB

Last updated

almost 6 years ago

docker pull logicfish/dmd