On Fri, 04 Sep 2009 13:40:02 +0400, Don <nos...@nospam.com> wrote:
Jeremie Pelletier wrote:
Well I've decided to get a look at the dmd2 source and see what I can
contribute to it, only to notice it is very VC++ unfriendly. After a
few hours of work, I finally got it to compile, and it works great,
for the most part.
VC++ has no real support for long double; it supports the syntax as
distinct types but they are implemented as double precision, not
extended precision. There are no stdint.h and fenv.h headers, I found
isnan() in float.h but I had to leave out backend/strtold.c for now,
there was no unresolved references from this. alloca() was also found
in malloc.h, not stdlib.h. The joys of not using a C99 compliant
compiler heh. I also couldn't get the compiler to compile *.c as C++,
even with the /TP switch (Compile as C++), I had to rename every file
to *.cpp.
Other than that, it was standard compilation, I disabled a few
warnings to not get my output flooded, defined MARS, __I86__ and _DH,
generated the different table files, and compiled, all from within
the IDE.
What are the advantages of VC++? Just the browsing?
Wonderful debugging capabilities. That's a *huge* advantage.