2 ms·
No, not KSOS. The Modula 1 environment. That was one of Wirth's early languages. Modula 2 is better known. Modula 1 was for embedded. This was the first languag
by Animats 5y ago
No, not KSOS. The Modula 1 environment. That was one of Wirth's early languages. Modula 2 is better known. Modula 1 was for embedded. This was the first language to have compile-time multitasking, something very rarely seen since. Here's a better reference.[1]
One of the most unusual features is that the Modula 1 compiler computed stack size at compile time, so that stacks, too, were allocated at compile time. Recursion required declaring a limit on the maximum recursion depth.
It's interesting as a working example of how minimal you can go running on bare metal and stay entirely in a high level language. Few languages since have been specifically dedicated to such a minimal environment.
This is what you need for programming your toaster or door lock.
[1] https://www.sciencedirect.com/science/article/pii/S147466701766988X https://www.sciencedirect.com/science/article/pii/S147466701...
- pjmlp 5y agoI guess you could consider Oberon-07 to be one of such languages, specially since Wirth made it even smaller in each revision.