3 ms·
C is much bigger than just the “embedded” world/microcontrollers. iOS and Android are still C from the kernel up through the window system/graphics layer. The r
by rayiner 8y ago
C is much bigger than just the “embedded” world/microcontrollers. iOS and Android are still C from the kernel up through the window system/graphics layer. The router software at the core of the Internet are written in C. Vulkan or whatever underlies your game console is in C, as is the GPU driver. (The game itself is probably C++.)
- pjmlp 8y agoActually besides the Linux kernel and the respective drivers, Android native parts are mostly written in C++, specially since after Treble reboot. Game consoles use mostly C++.
- pcwalton 8y agoIOKit and all drivers, which are most of the iOS kernel by lines of code, are C++. The windowing system of iOS and modern macOS, Core Animation, is a hybrid of Objective-C and C++. As pointed out by the sibling comment, core Android—everything Google wrote except kernel modules—is basically all C++. Vulkan is a C API (though might have a C++ implementation), but Metal is all Objective-C (with internals written in C++, I think?), and Direct3D is all COM-flavored C++.
- saagarjha 8y ago> Metal is all Objective-C (with internals written in C++, I think?) Most Metal programming (for shaders, at least) is done in C++, which it itself is written in.