Forum > General

OS kernel can be written in Pascal !!

(1/2) > >>

Well, I have just proved it !!

With reference to, although not 100% following his examples.

Is this a good news?

There are more examples. E.g. for Raspberry Pi there is Ultibo to build kernels and aa long time ago a pascal flavor was used for many micro Os's.
FreePascal has good support for barebone/kernel programming.

It is always nice to write your own OS.  :)


--- Quote from: Mussel on January 07, 2022, 10:45:07 pm ---With reference to, although not 100% following his examples.

--- End quote ---

That article essentially abuses the Linux target for this. However for barebones development FPC has the Embedded target (most might associate it with micro controllers, but in essence it means “without an OS”).


--- Quote from: Mussel on January 07, 2022, 10:45:07 pm ---Well, I have just proved it !!

--- End quote ---

I'd hardly call something which is in effect a "Hello, World!" an operating system, and it includes various assembler etc.

I have managed to write a bare-metal microkernel in Modula-2 (Wirth's next language), which relied heavily on the language's built-in coroutine support to switch between threads. Also it used an external binder to fudge descriptor tables etc.

I'm not sure that it's possible to write a useful OS from scratch in a high-level language unless you either

* Embed processor-specific assembler


* Have extensions to the language which might be great from the POV of the OS writer, but are definitely not the sort of thing that you'd allow most application programmers to get their hands on


* Have a specialist OS-builder to handle binary generation



--- Quote from: Mussel on January 07, 2022, 10:45:07 pm ---Is this a good news?

--- End quote ---
Yes, but you're about 10++ years too late. Feel free to take a look at all previous attempts. I wrote the first entry when I was in college, then I graduated and had no more time to develop. Among all listed, Ultibo to me is the most advanced and featureful. I don't mean to put you down, but take a look at it to see what can be done in Pascal with regard to OS development. It's not the language, it's the programmer, as always. If you go to OSDev forum, there are still people making 16-bit OSes using Turbo Pascal for whatever reason.


[0] Message Index

[#] Next page

Go to full version