[fpc-pascal] writing device driver using FPC
Michael Van Canneyt
michael at freepascal.org
Thu Apr 5 09:36:11 CEST 2007
On Thu, 5 Apr 2007, Bisma Jayadi wrote:
> Writing device driver for windows using Delphi is almost impossible since
> Delphi can't produce .sys files. Is it the same case for FPC? Can FPC produce
> .sys file and write device drivers for any OSes (not just windows)? TIA.
Well. FPC can be used to write an operating system, so writing a device
driver is in theory possible.
Mostly, this would mean writing an RTL which runs inside a kernel, which means
writing routines to handle IO and routines to handle memory management from the
kernel interfaces.
I think for Unix-type interfaces that would be enough. For Windows, there is
the additional problem of producing a .sys file, which would mean some changes
to the internal linker.
Michael.
More information about the fpc-pascal
mailing list