4 ms·
> I doubt you could stay within the first ISO C standard and write a modern operating system. Do you take that view because of some intrinsic deficiency in the
by andyjohnson0 5y ago
> I doubt you could stay within the first ISO C standard and write a modern operating system.
Do you take that view because of some intrinsic deficiency in the language, or the difficulty of memory safety, or something else?
- maxlybbert 5y agoThe C standard has notes about a freestanding implementation, mainly for developing kernels. The requirements C has for freestanding environments are very limited ( http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf , you get float.h, iso646.h, limits.h, stdalign.h, stdarg.h, stdbool.h, stddef.h, stdint.h, and stdnoreturn.h) and the starting point for the program is implementation defined; you might get _Atomic, but that’s optional). For the record, C++ goes a little overboard and promises all sorts of things in its freestanding environment. https://groups.google.com/g/comp.std.c/c/zzyii-DlMiU/m/RnH5iO3keCMJ https://groups.google.com/g/comp.std.c/c/zzyii-DlMiU/m/RnH5i...