Liste des Groupes | Revenir à cl c |
On 12/15/2024 3:32 PM, bart wrote:Have either you or Thiago looked at C-- as an alternative? I don't know how practical it would be.On 15/12/2024 19:08, Bonita Montero wrote:As an IL, even C is a little overkill, unless turned into a restricted subset (say, along similar lines to GCC's GIMPLE).C++ is more readable because is is magnitudes more expressive than C.>
You can easily write a C++-statement that would hunddres of lines in
C (imagines specializing a unordered_map by hand). Making a language
less expressive makes it even less readable, and that's also true for
your reduced C.
>
That's not really the point of it. This reduced C is used as an intermediate language for a compiler target. It will not usually be read, or maintained.
>
An intermediate language needs to at a lower level than the source language.
>
And for this project, it needs to be compilable by any C89 compiler.
>
Generating C++ would be quite useless.
>
Les messages affichés proviennent d'usenet.