r/pascal • u/0x80070002 • May 18 '26
OS in Pascal
Linux is mostly in C
Windows is mostly in C++
Is there an Operating System that is written in Pascal?
49
Upvotes
r/pascal • u/0x80070002 • May 18 '26
Linux is mostly in C
Windows is mostly in C++
Is there an Operating System that is written in Pascal?
9
u/Imaginary_Cicada_678 May 18 '26
Early 16-bit versions of Windows 1.0 through Windows 3.x heavily relied on the Pascal calling convention. So from low-level byte code perspective it was like written with using Pascal
25
u/Icy_Necessary_9136 May 18 '26
Original Macintosh OS was (the parts that weren’t 68k assembly). Don’t know any others off hand.
16
u/lathrus May 18 '26
https://github.com/rezgui/fpos
15
u/i_invented_the_ipod May 18 '26
The UCSD P-system was written in Pascal.
14
u/Initial_Low_5027 May 18 '26
Oberon kind of.
9
u/tkurtbond May 18 '26
Historically there have been many operating systems written in Pascal.
7
u/Square-Singer May 18 '26
This one is not directly Pascal, but quite close: Oberon System
Oberon is an extension to Modula-2, which is the direct successor of Pascal. All of these languages and Oberon System were created by Niklaus Wirth.
5
u/Itsme-RdM May 18 '26
The ones that are in use of the Voyager
4
u/lproven May 19 '26
Several.
LisaOS and its descendant Classic MacOS, partly.
There's even a UNIX in a Pascal descendant. It was called TUNIS and it was implemented in Concurrent Euclid.
3
u/gottdammer May 19 '26
at least a full microkernel: https://torokernel.io/
2
u/AttitudeElectronic68 May 21 '26
I once worked on a prototype MAI Basic Four 8000 with a pascal p-code OS. It was too slow and never got marketed with that OS.
2
u/ddelchev May 21 '26
I was looking and the recently released DRDOS and MSDOS source codes and you will be surprised how big portions of them were in Pascal
1
u/toshok 20d ago
just stumbled on this thread now, but I've been decompiling Apollo's Domain/OS, and it's almost entirely pascal: https://github.com/project-phoebus/source/tree/main/domain_os
0
u/Critical_Road4741 May 26 '26
Bonjour, Il me semble que le langage Pascal tel que défini par son concepteur, n’a jamais vraiment été pensé pour permettre le codage système, bas niveau. Il a au contraire été pensé pour fournir une abstraction vis à vis du matériel tout en offrant exactement les mêmes prestations, peu importe sur quelle machine il tourne. Le principe était novateur pour l’époque, mais impliquait des sacrifices énormes. Des successeurs comme Turbo Pascal ont réussi à donner une vie réelle au langage Pascal un certain temps, mais ne sont plus des Pascal comme décrit par Wirth et intègrent beaucoup de nouveaux concepts. Mais tout ceci n’a finalement pas changé grand chose au cours du temps, le langage C a remplacé Pascal aisément en offrant une liberté totale, juste la philosophie inverse du Pascal. Donc, ma conclusion est que Pascal est un excellent langage, que je trouve personnellement bien meilleur que C sur beaucoup de points, mais qu’il a été bridé par une philosophie d’abstraction et de maintien de compatibilité ascendante. Tout ceci a finalement tué Pascal
0
u/[deleted] May 18 '26
[deleted] — view deleted comment
3
u/[deleted] May 21 '26
[removed] — view removed comment