[fpc-pascal] writing device driver using FPC
Vinzent Hoefler
JeLlyFish.software at gmx.net
Thu Apr 5 10:42:19 CEST 2007
On Thursday 05 April 2007 08:14, Felipe Monteiro de Carvalho wrote:
> On 4/5/07, Vinzent Hoefler <JeLlyFish.software at gmx.net> wrote:
> > And it would mean writing a C to Pascal conversion of an ever
> > changing kernel interface.
>
> All interfaces change when a new version is released,
Well, I was not talking about justified "architectural" changes (like
those from 2.4 to 2.6), but rather about those deliberate changes of
the Linux driver ABI sometimes from kernel patch to kernel patch where
important structures get reordered and such stuff. Without the actual C
macros you are lost. And yes, it's done on purpose to discourage the
use of binary only drivers. Additionally it discourages the use of
other languages than C when writing device drivers. I did one in Ada a
couple of years ago, but trying that these days would be close to
suicide or at least get you to the madhouse. ;)
Vinzent.
More information about the fpc-pascal
mailing list