4 ms·
> A thought occurs to me: would it be possible to use that compiler to bootstrap your way to a modern C dialect? You don't need to. SmallC is a cross-compiler,
by duskwuff 6y ago
> A thought occurs to me: would it be possible to use that compiler to bootstrap your way to a modern C dialect?
You don't need to. SmallC is a cross-compiler, not a self-hosting compiler; it runs on a modern computer, not an 8085. If you wanted to modify SmallC to accept modern C syntax, you can do that without "bootstrapping" anything.
- arcticbull 6y agoYou could probably write some macros or some other kind of text processing job to convert modern C constructs into K&R and feed it into SmallC.