comp.lang.ada
 help / color / mirror / Atom feed
From: Geert Bosch <geert@gonzo.sun3.iaf.nl>
Subject: Re: 2nd help about handling HW interrupt and apologizes.
Date: 1998/04/10
Date: 1998-04-10T00:00:00+00:00	[thread overview]
Message-ID: <6glg1a$8og$1@gonzo.sun3.iaf.nl> (raw)
In-Reply-To: m37m4y6iy2.fsf@fred.muc.de


Andi Kleen <ak@muc.de> wrote:
   To just get the job done it is probably easier to just write a small
   stub kernel driver in C that communicates with the Ada program running
   in userspace over a device or a netlink socket.

Of course you'll have exactly the same problems when you write these
drivers in C as when you write them in Ada! As you mentioned it is
not safe to use the C run-time library as well. So, yes, you should
write your code using a very limited subset of the language and you'll
have to know what kind of code your compiler generates.

For example when using GNAT it is possible to get almost identical
code as when using the GNU C compiler if you just limit yourself to
what would be possible in C. It is easy to do this experiment yourself
and look at the generated code; this is something you should do in
any case when writing code like system kernel modules. 

Regards,
   Geert





  parent reply	other threads:[~1998-04-10  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-08  0:00 2nd help about handling HW interrupt and apologizes jtapasai
1998-04-08  0:00 ` Markus Kuhn
1998-04-10  0:00   ` Andi Kleen
1998-04-10  0:00     ` Using GNAT for Linux kernel hacking Markus Kuhn
1998-04-10  0:00     ` Geert Bosch [this message]
1998-04-11  0:00       ` 2nd help about handling HW interrupt and apologizes Andi Kleen
1998-04-10  0:00     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox