What languages are Windows, Mac OS X and Linux written in?

后端 未结 13 2125
借酒劲吻你
借酒劲吻你 2020-12-04 04:16

I was just wondering who knows what programming languages Windows, Mac OS X and Linux are made up from and what languages are used for each part of the OS (ie: Kernel, plug-

相关标签:
13条回答
  • 2020-12-04 05:14
    • Windows: C++, kernel is in C
    • Mac: Objective C, kernel is in C (IO PnP subsystem is Embedded C++)
    • Linux: Most things are in C, many userland apps are in Python, KDE is all C++

    All kernels will use some assembly code as well.

    0 讨论(0)
  • 2020-12-04 05:15

    I have read or heard that Mac OS X is written mostly in Objective-C with some of the lower level parts, such as the kernel, and hardware device drivers written in C. I believe that Apple "eat(s) its own dog food", meaning that they write Mac OS X using their own Xcode Developer Tools. The GCC(GNU Compiler Collection) compiler-linker is the unix command line tool that xCode used for most of its compiling and/or linking of executables. Among other possible languages, I know GCC compiles source code from the C, Objective-C, C++ and Objective-C++ languages.

    0 讨论(0)
  • 2020-12-04 05:15

    The Linux kernel is mostly written in C (and a bit of assembly language, I'd imagine), but some of the important userspace utilities (programs) are shell scripts written in the Bash scripting language. Beyond that, it's sort of hard to define "Linux" since you basically build a Linux system by picking bits and pieces you want and putting them together, and depending on what an individual Linux user wants, you can get pretty much any language involved. (As Paul said, Python and C++ play important roles)

    0 讨论(0)
  • 2020-12-04 05:16

    As an addition about the core of Mac OS X, Finder had not been written in Objective-C prior to Snow Leopard. In Snow Leopard it was written in Cocoa, Objective-C

    0 讨论(0)
  • 2020-12-04 05:20

    Mac OS X uses large amounts of C++ inside some libraries, but it isn't exposed as they're afraid of the ABI breaking.

    0 讨论(0)
  • 2020-12-04 05:20
    • windows: C++
    • linux: C
    • mac: Objective C
    • android: JAVA, C, C++
    • Solaris: C, C++
    • iOS 7: Objective-C,Swift,C, C++
    0 讨论(0)
提交回复
热议问题