From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b00d07477115903e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-24 16:39:00 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn52feed!worldnet.att.net!attbi_s02.POSTED!not-for-mail From: "Jeff C," Newsgroups: comp.lang.ada References: Subject: Re: Ada runtime and Linux Kernel Module X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s02 1080175139 24.147.74.171 (Thu, 25 Mar 2004 00:38:59 GMT) NNTP-Posting-Date: Thu, 25 Mar 2004 00:38:59 GMT Organization: Comcast Online Date: Thu, 25 Mar 2004 00:39:00 GMT Xref: archiver1.google.com comp.lang.ada:6495 Date: 2004-03-25T00:39:00+00:00 List-Id: Another option is to look at something like GNAT for RTLinux. http://rtportal.upv.es/apps/rtl-gnat/ "Rohan" wrote in message news:a7a482f9.0403241330.368af948@posting.google.com... > Hello! > > I am in the very early stages of looking at writing a Linux kernel > module in ada for a University project. I have looked around and it > seems to be possible, if tricky. > > The Big Online Book of Linux Ada Programming > (http://www.vaxxine.com/pegasoft/homes/16.html) has some information, > and I have a test module written based on the example code there. > > Any module would need to avoid anything which used the ada runtime. > There are references to pragma no_run_time but I have found that as > long as I stear clear of using anything that requres the runtime there > is no problem even without the pragma. > > However I would quite like to use exceptions and allocate veriables > from the heap. The BOBOLAP states: > > "If you have the time, you can always copy some of the standard Ada > packages to a separate directory and compile them into your GNORT > project, effectively creating your own small, custom run-time system." > > I have had a play around trying to do this, but am somewhat stumbling > in the dark. Does anybody have any pointers to how I go about this? > Or indeed any example ADA linux module code! > > Thanks > > Rohan