by Rochus · 2w ago · 0 comments
The current micc has three native backends (x86, ARMv7, RV32) and a C99 transpiler. I'm currently migrating the https://github.com/rochus-keller/micronsystem3/ to the Olimex ESP32-P4 board and the Raspberry Pi 3b using the native backends; on the "Wirth RV32 machine" it is already working; both the ARM and RV32 backends have options to adapt the generated code to a certain degree (e.g. for the A10, or the ESP32-C6). So far I have no plans to support more architectures. All backends offer a "C-like" calling convention, which supports directly linking and calling into C libraries (but not for all C parameter types, my approach is converting C to MIL instead, see https://github.com/rochus-keller/c2mil/). micc also has an integrated linker.
Because the world jumped onto OOP in all its meanings, the idea of modules and parsimonious simplicity seems to have been lost. It was wonderful to learn about Micron because I had been looking hard at Pascal, Modula-2, Oberon, Active Oberon, etc. to assess how they might work in modern ground-up system design with an emphasis on security and simplicity. As long as the toolchains and debug tools exist, I'm thinking that those who value this might be willing to break from current industry practice. That is why I asked about targeting other MCUs and CPUs.
Thank you for continuing to keep the Wirth candle alight. What you have been able to do by yourself is truly impressive.
> I had been looking hard at Pascal, Modula-2, Oberon, Active Oberon, etc. to assess how they might work in modern ground-up system design with an emphasis on security and simplicity
Interesting. I did essentially the same which first brought me to Oberon+ (https://github.com/rochus-keller/oberon/) which already was able to replace the unchecked pointer aritmetics of Oberon SYSTEM by a typed foreign function interface (FFI) as part of the language. But even then the system still depends on C or assembler. That's why I came up with Micron, which eventually will be able to even initialize the machine before there is a stack, all in the same high-level language.
> I'm thinking that those who value this might be willing to break from current industry practice
Go has demonstrated that there is a market for a "simple" language (at least before they added parametric polymorphism). It's nice if my work is appreciated, but I would not be able to give support to industry to adopt the language. Thanks for the motivating words.