Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: bart Newsgroups: comp.lang.c Subject: Re: transpiling to low level C Date: Sun, 15 Dec 2024 21:32:11 +0000 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Dec 2024 22:32:10 +0100 (CET) Injection-Info: dont-email.me; posting-host="178d3803084f207cadffeb141ca52cd0"; logging-data="803887"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OpdR76huqT3RyYQ6e9NTL" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:KV/qS5TsKxz6FaEUo1WoFnkuL9M= Content-Language: en-GB In-Reply-To: Bytes: 1737 On 15/12/2024 19:08, Bonita Montero wrote: > 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.