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-Thread: 103376,eb0113bcc08a039a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 08 Oct 2007 20:42:30 -0500 From: "Steve" Newsgroups: comp.lang.ada References: <1191880545.979964.152370@g4g2000hsf.googlegroups.com> Subject: Re: OS in Ada, what about the compiler? Date: Mon, 8 Oct 2007 18:43:44 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 24.20.111.206 X-Trace: sv3-SYnOMBQ/7IdAVKKrQe9ZfirD4nOQx97akUcSzICvGMoakH9gKNFlSlpsyushW/7eaNhF3vmxNa9VQ6o!TikWbqx64jXO+zh1kCjQBOb9/fZ58KV7spSEnYRUq0VPz8vyXbzV+/kbUABoUtZiuT6/d63Sw6WC!cviRAgfOUDT6UiofAgYpJ3d4q8D12Q== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.36 Xref: g2news2.google.com comp.lang.ada:2369 Date: 2007-10-08T18:43:44-07:00 List-Id: "Lucretia" wrote in message news:1191880545.979964.152370@g4g2000hsf.googlegroups.com... > Hi, > > I've been thinking about working on an OS but writing it in Ada, > wanted to do it for a while and have in the past written a few hello > world style kernels for different platforms; these basically used the > "pragma No_Run_Time;" in the source. > > But, say I wanted a stripped down runtime, no tasking, just be able > use things like attributes, tagged types, overloading, etc. What > exactly would I have to do to GNAT to get this far? > I don't know enough about the compiler to answer directly, but the folks that put together AVA-Ada, which is GNAT targeting the 8 bit AVR microcontrollers have produced a stripped down runtime for that target. I don't know exactly what features are supported, but it might be useful to see how they adapted GNAT for that target. http://avr-ada.sourceforge.net/ There is some documetation here: http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/index.htm on the GNU Ada runtime. You might be able to figure out how the compiler uses the run-time and implement your own non-posix runtime in its place. I hope this helps, Steve (The Duck) > Any platform, but ultimately IA32 for starters - I'd prefer to start > on a simpler architecture, like ARM or MIPS, for example. But anyway. > > Thanks, > Luke. >