5 ms·
This is great, are there some intended goals for having a C++ compiler written in pure D after you've started to improve the structure? I'm thinking of things l
by giancarlostoro 9y ago
This is great, are there some intended goals for having a C++ compiler written in pure D after you've started to improve the structure? I'm thinking of things like the faster C++ preprocessor that was done for Facebook in D (was it Warp?) and similar improvements to C++ through D.
Thanks for all your awesome hard work by the way!
- WalterBright 9y agoI don't really have any scathingly brilliant goals for the D version, other than inspiring others to make use of it. I still maintain it, it'll be much easier to maintain in D, and not much work to convert it to DasBetterC. Yes, it was Warp: https://github.com/facebookarchive/warp https://github.com/facebookarchive/warp https://code.facebook.com/posts/476987592402291/under-the-hood-warp-a-fast-c-and-c-preprocessor/ https://code.facebook.com/posts/476987592402291/under-the-ho... You're welcome! It's reactions like yours that make it worthwhile.
- AlexeyBrin 9y agoThanks for your hard work. Can you please add, if you have time, a few lines (the commands required) for building the compiler from source ?
- WalterBright 9y agomake clean make scppn
- AlexeyBrin 9y agoThanks, I've installed DMD and DMC, when I try to build the compiler I get a compilation error: .\code.d(16): Error: module `cc` is in file 'ddmd\backend\cc.d' which cannot be read
- WalterBright 9y agoSeems I haven't tried to build it from the github in a while. code.d was missing from the makefile command to update github. Fixed.
- AlexeyBrin 9y agoPrevious error is now fixed. New error: dmd -c -betterC -noboundscheck -mv=dmd.backend=. -mv=tk=tk -version=SCPP -O -release -inline dt.d -ofdth.obj dt.d(36): Error: TypeInfo cannot be used with -betterC --- errorlevel 1 --- errorlevel 1
- sigzero 9y agoThere are probably better ways to do this.
- WalterBright 9y agoHmm, looks like you're using the latest dmd. I've been using 2.074. I suggest switching to 2.074, or wait until I get it working properly with the latest dmd.
- AlexeyBrin 8y agoYes, I've tried to build dmc using the latest dmd. I will try with 2.074 and report back
- AlexeyBrin 8y agoI've checked with 2.074.0 and 2.074.1, no joy, but a new error: dmd -c -betterC -noboundscheck -mv=dmd.backend=. -mv=tk=tk -version=SCPP -O -release -inline -J. dfile.d dfile.d(854): Error: static variable stdout cannot be read at compile time BTW, I did all my tests on a clean Windows machine with nothing else installed.
- WalterBright 8y ago
- giancarlostoro 9y agoThat's good to hear! Please don't stop working on D ever, it really is a fantastic gem in a sea of programming languages. My only regret is not using it in production more (decisions out of my control).
- WalterBright 9y agoI'll be working on it until they carry me out in a box.