Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. D
  3. LDC

LDC

NOASSERTIONDv1.42.0

A portable D programming language compiler using LLVM for modern optimization and code generation.

Visit WebsiteGitHubGitHub
1.3k stars287 forks0 contributors

What is LDC?

LDC is the LLVM-based D Compiler, a portable compiler for the D programming language that uses the official DMD frontend for language support and LLVM Core libraries for code generation. It provides modern optimization capabilities and supports the latest D2 language specification while being fully open-source.

Target Audience

D programmers who need a high-performance, cross-platform compiler with modern optimization features, particularly those working on projects requiring native code generation across multiple target architectures.

Value Proposition

Developers choose LDC for its combination of full D language compatibility through the DMD frontend with LLVM's powerful optimization and code generation capabilities, offering better performance and portability than other D compiler options.

Overview

The LLVM-based D Compiler.

Use Cases

Best For

  • Compiling D code with modern LLVM optimizations
  • Cross-compiling D applications to different target platforms
  • Developing high-performance native D applications
  • Building D projects on Linux, macOS, Windows, and BSD systems
  • Targeting Android with D programming language
  • Projects requiring the latest D2 language features with optimized code generation

Not Ideal For

  • Projects prioritizing the absolute fastest compilation times over runtime performance
  • Environments where LLVM is not available or minimizing dependencies is critical
  • Teams maintaining legacy D1 codebases without upgrading to D2
  • Users relying solely on outdated community package manager distributions for stability

Pros & Cons

Pros

LLVM Optimization Engine

Leverages LLVM Core libraries for advanced code generation and optimization across platforms, providing efficient native code as highlighted in the key features.

Full D2 Language Compatibility

Uses the official DMD frontend to support the latest D2 language specification, ensuring up-to-date language features without compromise.

Cross-Platform Compilation Support

Available for Linux, macOS, Windows, FreeBSD, Android, and more, with simple cross-compiling capabilities similar to other LLVM-based compilers, enabling diverse target deployments.

Portable Open Source Builds

Offers stand-alone binary builds for easy deployment and is fully open-source under BSD license, promoting accessibility and community contributions.

Cons

LLVM Version Dependency

Requires a recent LLVM version (≥ 18) for building, adding complexity and potential compatibility issues, as noted in the source build instructions.

Compilation Speed Trade-off

CI builds with enabled assertions increase compile times by roughly 50%, indicating slower compilation in debug or development scenarios compared to compilers like DMD.

Outdated Community Packages

Packages from package managers are community-maintained and might be outdated or lack full features, as explicitly warned in the installation section, risking inconsistent experiences.

Frequently Asked Questions

Quick Stats

Stars1,342
Forks287
Contributors0
Open Issues502
Last commit1 day ago
CreatedSince 2011

Tags

#d#programming-language#d-language#compiler#dlang#cross-compilation#native-compilation#llvm#code-generation

Built With

L
LLVM
C
CMake
D
DMD

Links & Resources

Website

Included in

D748
Auto-fetched 13 hours ago

Related Projects

DMDDMD

dmd D Programming Language compiler

Stars3,283
Forks704
Last commit15 hours ago
GDCGDC

GNU D Compiler

Stars359
Forks47
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub