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 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 13:42:58 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Ada runtime and Linux Kernel Module Date: Wed, 24 Mar 2004 21:42:57 +0000 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1080164577 19671 62.49.62.197 (24 Mar 2004 21:42:57 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 24 Mar 2004 21:42:57 +0000 (UTC) User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: archiver1.google.com comp.lang.ada:6493 Date: 2004-03-24T21:42:57+00:00 List-Id: On Wed, 24 Mar 2004 13:30:30 -0800, Rohan wrote: > 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 only thing you need is the system.ads file. The rest you don't need and won't really be able to use for OS level programming. Another feature you *will* require is the use of "pragma Restrictions(No_Elaboration_Code);" to force the compiler not to generate things like functions for arrays, i.e. conversion functions for indexing. Also, use the -gnatdg switch to see what GNAT is generating and you'll see what I mean. > "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." As I remember it, GNORT doesn't exist anymore. I also created a gnat.adc file with the following inside it: pragma No_Run_Time; pragma Restrictions(No_Exceptions); That should be all you need. Luke.