Comment by uecker

Comment by uecker 5 days ago

14 replies

Cool! And I do think the world needs more C compilers. There is so much you could do with this language, but it needs to be disentangled from the C++ compiler behemoths. (yes, I now that there are other small C compilers)

isitcontent 5 days ago

There is the TCC. Adapting that would probably be a faster path to a full featured C compiler on esp32 than building up my xcc700. This is more of an educational sandbox project.

  • uecker 5 days ago

    I know, and there are chibicc, kefir, etc. .. and I have my own experimental C compiler.

    • fuhsnn 5 days ago

      I would love to see how you handle variably-modified types, the way I retrofitted them onto chibicc never felt quite right, and I've never seen another non-gcc/clang compiler fully support noplate's VM type patterns.

      • uecker 4 days ago

        Maybe I fill find the time to clean it up and make it public. But did not find VM-types difficult to implement, the type just depends on some run-time value, so at the point in time where the size expression is evaluated, one stores the result in a hidden variable which the type refers to.

pjmlp 4 days ago

What we need is safety improvements in C, we already have enough security exploits in the standard library, strings and arrays, no need for more, without fixing what is broken since 1979 (lint birth year).

  • uecker 4 days ago

    I am looking forward to your contributions.

    • pjmlp 4 days ago

      I have been contributing with C++ code since 1993, with bounded checked collection types in release code, and compiled managed languages since mid 2000's.

      Even Dennis Ritchie and Ken Thompson themselves, went on with Alef, Limbo and Go.

      I have been contributing by reducing my C, and C++ footprint on the planet, and security enforcement at various assignments.

      • uecker 4 days ago

        These do not seem to be the safety improvements for C that you requested.