DigitalMars/Compiler
View on GitHub ↗ ★ 336 D
17 mentions on Hacker News by 4 people: 1 story, 16 comments · first 2018-05-22 · latest 2025-11-03
20082026
-
https://github.com/DigitalMars/Compiler
comment by WalterBright · 2025-11-03 · in Writing FreeDOS Programs in C -
…m/dlang/dmd/blob/master/compiler/src/dmd/cp... is vastly different from the one I wrote in the 1980s: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... My original evil plan was to recycle the old one, but I just couldn't.
comment by WalterBright · 2022-10-29 · in The Business Impact of Code Quality -
The main cause of that is I was slow to make the compiler open source. It is open source now. https://github.com/DigitalMars/Compiler
comment by WalterBright · 2022-01-30 · in How FreeDOS Grew Up and Became a Modern DOS (2021) -
…here is some code in C that was translated to D (it's part of the Digital Mars C++ compiler): C: https://github.com/DigitalMars/Compiler/blob/dmc-cxx/dm/src/... D: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... They look…
comment by WalterBright · 2021-04-06 · in Wuffs’ PNG image decoder -
…from the original C-with-Classes code. DMC++ itself underwent the conversion to D using -betterC. https://github.com/DigitalMars/Compiler/tree/master/dm/src/d... It still looks a lot like C.
comment by WalterBright · 2020-04-28 · in Better C – A subset of D Programming Language -
…the dictionary. It works surprisingly well. I added it to the Digital Mars C++ compiler as well. https://github.com/DigitalMars/Compiler/blob/master/dm/src/d...
comment by WalterBright · 2020-02-18 · in The Myth of the Myth of the 10x Programmer -
…was originally written for my C compiler, then my C++ compiler. The source code can be found here: https://github.com/DigitalMars/Compiler The editor I use is https://github.com/DigitalMars/med which is translated to D from the older C…
comment by WalterBright · 2020-01-15 · in Writing Software to Last 50 Years -
…Source code to the compiler/libraries is also free: https://github.com/DigitalMars/dmc https://github.com/DigitalMars/Compiler
comment by WalterBright · 2019-10-03 · in Show HN: 8086/8088 assembler that runs over 8088 hardware with modern syntax -
…code: https://github.com/facebookarchive/warp and the one for the C compiler I wrote long ago: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... which is integrated with the C lexer for speed reasons.
comment by WalterBright · 2019-09-05 · in I wrote a self-hosting C compiler in 40 days (2015) -
…DOS.) http://www.program-transformation.org/Transform/CCompilerHis... The Data Flow Analysis code: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d...
comment by WalterBright · 2019-08-20 · in Why Const Doesn't Make C Code Faster -
For comparison, here's the C++ lexer for Digital Mars C++: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... The parser isn't in its own file, it's intermingled with the semantic processing, a mistake I didn't want to repeat…
comment by WalterBright · 2019-02-24 · in A meta approach to implementing programming languages (2018) -
"Use the Source, Luke!" https://github.com/DigitalMars/Compiler/blob/master/dm/src/d...
comment by WalterBright · 2018-07-24 · in The internals of testing in Rust in 2018 -
…the list. DMD does a limited form of SROA I wrote as a proof of concept, it should be generalized. https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... I've also written a loop unroller, but it can be improved:…
comment by WalterBright · 2018-07-24 · in The internals of testing in Rust in 2018 -
…reduction, copy propagation, loop unrolling, dead store elimination, live range analysis, etc. https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... The optimizer / code generator is the same one that Digital Mars C++ uses, which…
comment by WalterBright · 2018-07-24 · in The internals of testing in Rust in 2018 -
…DWARF exception handling. (I realise this doesn't really answer your question, but it's a start.) https://github.com/DigitalMars/Compiler/blob/7a33233c/dm/src... https://github.com/DigitalMars/Compiler/blob/7a33233c/dm/src...
comment by MaxBarraclough · 2018-05-23 · in DigitalMars C/C++ Compiler -
…is progressively rewritten in d. For those interested, there is a tag for the last pure c version: https://github.com/DigitalMars/Compiler/tree/Last-C-Version Would probably be interesting to convert it in C++17 :-) Meta-comment: I delete…
comment by Rexxar · 2018-05-23 · in DigitalMars C/C++ Compiler -
▲ 286
DigitalMars C/C++ Compilerstory by tomcam · 2018-05-22 · 158 comments