Sujet : Re: technology discussion → does the world need a "new" C ?
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.cDate : 06. Jul 2024, 11:23:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6b5uf$3p1is$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 05/07/2024 23:40, Ben Bacarisse wrote:
BGB <cr88192@gmail.com> writes:
Like, for example, I had tried (but failed) to write a usable C compiler in
less than 30k lines (and also ideally needing less than 4MB of RAM). But,
if the language design is simplified some, this might be a little
closer. Might still be doable, but a C compiler in 50-75k lines is much
less impressive.
Why do you think this matters to other people?
To the average prgrammer, no, the compiler is "just there". Someone else wrote it, if it is a paid-for compiler than usually the university of the empployer paid for it. But of course someone smewere has to write it.
And if this difficult to do it limits the usability of the language. Now C is so popular that it almost doesn't matter. When a new chip comes out, usually the first thing the manufacturers is provide a C compiler for it. For other languages, this isn't the case.
And the moment I'm writing a shell. And it would be nice to add a "cc" command. But that's a huge task. However I already have a "bb" (BabyBasic), and it's still going to be quite a big job to get it to a state where it is easy to write useful prgrams with it. But not comparable to implementing a C compiler.
-- Check out my hobby project.http://malcolmmclean.github.io/babyxrc