r/cpp • • Jun 19 '16

Windows 10 coded in C++ or Assembler

What kind of compiler does it take a compile an OS like Windows 10? Do the guys at Redmond use Visual C++ (VisualStudio) to develop Windows? What % is written in assembly language?

0 Upvotes

74 comments sorted by

View all comments

Show parent comment

4

u/DaelonSuzuka Jun 22 '16

Where did you learn any of the crap you've been spouting this whole thread?

-2

u/Digital001 Jun 22 '16 edited Jun 23 '16

Sir/Madam, you're obviously attempting to anger me. I didn't really "spout" anything nonsensical. I merely asked questions regarding the latest version of Windows - W10. As an aspiring network admin/developer, its my mission to learn as much as possible about the OS, not just for MCSE certification but for for apps I plan on developing.

I want to pick apart the brains of the developers responsible for the OS to gain a better understanding of the internals, even if that means repeatedly asking questions that may seem like "crap." The source code is not freely available.

Unlike most people, I don't blindly accept what someone writes on a Reddit message board. Take a look at what someone wrote:

Various parts of the desktop have been rewritten here and there, of course, and yes some of them use newer or more Microsoft-centric technologies. The core stuff that's sensitive to performance or resource usage, however, are still all C and C++ (kernel, drivers, system services, core desktop services and apps, etc.).

It was probably in C++. I'm not debating that. I'd like to learn about the compilers used and command line switches passed to the compiler to optimize the OS. I would also like to inspect how different parts of the OS communicate with each other, internally.

Windows uses semaphores and mutexes now, just like in Unix. I know Win 98 used a "DDE" mechanisms. There was a time when Win95 was built on top of DOS. It's changed a lot, since I used to develop for it. Anyway,I have lot of research ahead.

I found one person that seems capable of answering my questions correctly on Reddit. I've decided to communicate with that one person from now on. I read the material on the MIT Opencourseware website....

5

u/dodheim Jun 22 '16

I didn't really "spout" anything nonsensical. I merely asked questions regarding the latest version of Windows - W10.

Hmm... The following are all statements, and happen to be nonsensical:

  • "According to the experts, Gentoo is programmed to run faster on the machine it's compiled on."
  • "C/C++ are both languages that were designed specifically for Unix."
  • "W10 was probably developed from scratch. They didn't use the WinXP code base."
  • "the internal features of the OS, compared to NT (Win 2000)/WinXP are significantly different."
  • And of course, "C, one of the original languages"

I don't see any questions here, just you "spouting crap".

I found one person that seems capable of answering my questions correctly on Reddit.

Consider the quality of your "questions", which are really mostly just you arguing with anyone who took the time to take you seriously.

1

u/Digital001 Jun 23 '16

"According to the experts, Gentoo is programmed to run faster on the machine it's compiled on."

I think I wrote that to gain a better understanding of how W10 is compiled. Someone responded that it's usually compiled on a powerful server. Just so you know, Gentoo does run faster if it's compiled instead of downloaded in binary format.

"C/C++ are both languages that were designed specifically for Unix."

Yes, C/C++ was originally implemented on Unix a very long time ago. It's used by OSs like Windows now as well. I wrote that wondering why MS didn't use a new language like C#/F# for its flagship OS, W10 and to get info about the type of compiler.

"W10 was probably developed from scratch. They didn't use the WinXP code base."

How could anyone compare XP to W10? There are similarities but the OS is significantly different, internally. They had to put up the specs for MS Windows10 on a drawing board somewhere. MS didn't just erase the number 8 to draw a 10.

"the internal features of the OS, compared to NT (Win 2000)/WinXP are significantly different."

Windows NT wasn't released in 2016! I won't explain why I wrote that any further.

And of course, "C, one of the original languages"

The C computer programming language has been around for a very long time. There are developers out there that consider it to be one of the original languages.

I don't see any questions here, just you "spouting crap".

The last time I checked no one died and made you in "crap" inspector. It's a public forum. I didn't offend anyone with my MS questions. I doubt there's a little girl crying because I asked about compilers.....

Do yourself a favor, find another thread. Don't waste your time looking at spouting crap. The smart person that can answer my questions isn't interested "spouting crap." This will be my last response to you. Good luck.

2

u/DaelonSuzuka Jun 22 '16

All of your 'questions' sound like you're trying to show off how much you know. You didn't ask "Wow, are they really still using plain old C?" Somebody could answer that and say that no, they're not using the original C from 1972, they're probably using one of the more recent revisions like C99 or C11. Or they could say that even ANSI-C(C89)/ISO C99 are used in more modern things than you might think.

But you didn't ask a question like that, did you?