[fpc-other] [fpc-pascal] Porting linux to pascal, would it be, possible ?

Skybuck Flying skybuck2000 at hotmail.com
Sat Dec 6 20:46:35 CET 2008


----- Original Message ----- 
From: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
To: "Other FPC related discussions." <fpc-other at lists.freepascal.org>
Sent: Saturday, December 06, 2008 12:56 PM
Subject: [fpc-other] [fpc-pascal] Porting linux to pascal, would it 
be,possible ?


> On Fri, Dec 5, 2008 at 5:19 PM, Skybuck Flying <skybuck2000 at hotmail.com> 
> wrote:
>>
>> 1. Using automatic conversion from C to Pascal but then the code would 
>> still
>> have to be checked by humans.
>
> I can just imagine it will generate ugly code.

It would almost look the same as the C version which would be good for 
comparing any future improvements to the Linux source code ;)

>I would much rather imagine that a clean design

Are you suggesting to design a new operating system ? Difficult ?!

> with a good objects structure would be a much better solution in the long 
> term.

Object-wrappers could be added on top of it... that might make it a bit 
slower though.

>> 2. Only convert certain portions which are most interesting to people.
>> For example:
>> Linux's tcp/ip stack.
>> Linux gui.
>
> You are jumping the gun here!  You FIRST need a kernel. Then you need
> file system support. Then you can start with networking, utilities and
> GUI applications.

I was wondering if it's possible to mix C and Pascal in Linux.

For example, leave kernel in C and make other things in Pascal.

The combine it in binary form... ?

Like linking in C libraries or so ?

Bye,
  Skybuck. 



More information about the fpc-other mailing list