Re:Visual Studio 2013
by outside1234 on Monday June 03, 2013 @04:22PM
(#5815693)
honest question, is the Windows kernel written in C++? If not, what does that team use to build it if "C is deprecated"?
[ Parent
| on HN ]
Re:Visual Studio 2013
by pointyhats on Monday June 03, 2013 @04:35PM
(#5815801)
The Windows kernel is C++. From what I've seen (shared source), it's mainly C-style C++ though. I didn't see a single template or a class in my travels.
If you read the WRK, ntoskrnl is all C...
Or a C++ subset in the near future, if the BUILD 2012 remark is true.
and most of all extern "C", possibly no exceptions, no RTTI, no global new/delete, etc. - e.g. "embedded"-C++ like (only guessing).
Most likely yes.
it's in C. as it was explained to me once, the compiler team asked the kernel team if they would be fine fixing C support at C89 and the kernel team said "sure". being the largest and most important consumer of the compiler (at the time, possibly still today) that was that.
the kernel team is also pretty slow to adapt new C compilers and you can see this by watching the lag in compiler versions released in the driver development kit vs those released with visual studio.