• 0

What Language Is Windows Written In?


Question

Recommended Posts

  • 0
As far as I know, most of Windows is written in C++.
If most of windows is written in C++, why is the API all C-based? ( with exception to GDI+ ) MFC is a wrapper to the API, not the API itself.

In fact, many MS employees program in C/C++ in emacs, sometimes running linux. They don't typically use Visual Studio or any of the Visual (C++, Basic, etc.) interfaces or languages to code in. I personally find it amusing they don't use Visual Studio, but then again, not all of them can, cuz what are they going to write Visual Studio in? Not a previous version of Visual Studio!

Where'd you hear that? /.?

  • 0
In fact, many MS employees program in C/C++ in emacs, sometimes running linux. They don't typically use Visual Studio or any of the Visual (C++, Basic, etc.) interfaces or languages to code in. I personally find it amusing they don't use Visual Studio, but then again, not all of them can, cuz what are they going to write Visual Studio in? Not a previous version of Visual Studio!

Where'd you hear that? /.?

Microsoft information session at my school. We were asking programmers and project managers some questions about it. And a friend of mine who worked there over the summer confirmed it. Not Slashdot.

I'm not saying it's a bad thing, I was just amused. It makes sense though, as a lot of those programmers are rather "hardcore", if you will. But I'm not saying you're not a serious programmer if you use VS.

  • 0

C/C++ are not portable! There are all sorts of differences in hardware platforms that prevent that, particularly when you are writing code that is not targeted at an OS, but at hardware directly (as is the case when you are writing an OS). Each CPU family (x86, PowerPC, Sparc etc..) provides different instruction sets that can be called from C/C++ or other low-level languages and a program written with the x86 set in mind would never work on a PowerPC or Sparc without modifications and recompilation.

Writing a whole OS in assembler is possible but I highly doubt anyone would ever do that these days. The tedium alone would stop any developer from doing it. Besides, if windows was entirely written in assembler, my guess is MS would be very reluctant to develop versions of WinXP for Itanium or Opteron as it would require the whole thing to be redeveloped for the new instruction sets.

If you are creating an application, you can make programs written in C/C++ be portable if you use a portability layer like the one provided by Apache at apr.apache.org or the one by mozilla at http://www.mozilla.org/projects/nspr/index.html. Even so they only work when you are writing programs target to run on an OS (not on hardware alone) as they provide an abstraction layer to an OSes intrinsic types (strings, longs, floats etc..) and to other OS facilities like threading.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • these "editors" get paid by the amount of articles and not the quality of content; hence why we get this random stuff from the same "editor" time and time again.
    • 256 times the quality of an audio cd? I think audio cd's sound good so even twice as good as that would be something.
    • It’s not about the NOx. It’s about the electrical field.
    • FIFA cup is a worldwide event. Total global engagement — FIFA World Cup Qatar 2022 (official FIFA report) 5 billion people https://theworlddata.com/fifa-...-cup-viewership-statistics/ U.S., Canada, Japan drive vast World Series viewership for Games 1 and 2 In Japan despite a 9 a.m. local start time, Game One averaged 11.8 million viewers on NHK-G https://www.mlb.com/news/2025-...ching-large-global-audience There are also millions of annual viewers of the World Series in Latin America, especially Venezuela and the Domincan Republic due to the large number of players from those countries playing in the Major Leagues.
    • The original word arts were far more awesome! With their own preconfigured fill patterns, 3D layout, etc, with options to fine-tune their size and colors as desired. I especially loved the ones circled below and still miss them from my primary school years: I frankly use them less these days 'cause the new one isn't as straightforward fine art as what we originally had, taking time and effort to get back to the same graphics quality as the original offered, which I simply don't have enough of for merely fine-tuning my presentation titles. Same with the built-in picarts selection. Bring back the original pre-configured options for word art then I'll be using them far more frequently in my presentations even today.
  • Recent Achievements

    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
    • Week One Done
      Genuinetonerink- Dubai earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      +Edouard
      163
    3. 3
      PsYcHoKiLLa
      91
    4. 4
      Steven P.
      75
    5. 5
      Michael Scrip
      72
  • Tell a friend

    Love Neowin? Tell a friend!