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,11d39408e66ea211 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-21 03:42:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!newsfeed00.sul.t-online.de!t-online.de!join.news.pipex.net!pipex!news.kvaerner.com!news@kvaerner.com From: "Tarjei T. Jensen" Newsgroups: comp.lang.ada Subject: Re: GNAT Question Date: Wed, 21 Mar 2001 10:30:07 +0100 Organization: Kvaerner Group IT Message-ID: <999sb0$cnk5@news.kvaerner.com> References: <7wLt6.19470$bL.1855137@news6-win.server.ntlworld.com> NNTP-Posting-Host: 155.209.159.64 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.2120.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Xref: supernews.google.com comp.lang.ada:5961 Date: 2001-03-21T10:30:07+01:00 List-Id: chris.danx wrote >I'm implementing the BFS file system as a file on disk {maybe i mentioned it >before} and was going to do it in Ada first, then once i'm sure it works >re-write the thing in C. Maybe not a good idea. BFS is a nightmare anyway! >Does GNAT support writing raw binary data to disk? I really need to know >this! It is just a matter of API. Just like C, C++, assembler, etc. Take a look at the pragma and interface section of the ada reference manual. It is available on the net somewhere. Pragmas to look out for are import, export, convention and linker_options It will be a good idea to have a look at the Gnat source code. It should contain quite a lot of what you need to know. >I must have picked things up wrong. Maybe i'm also picking this up wrong >but i looked at the project and saw that some of it wasn't planned to be >written in Ada. I know the bootstrap needs Assembly, but i'd think (almost) >everything else could be done in Ada. I'm probably wrong about this aswell. No you are not wrong. Gnat can be used on bare boards. That means: no runtime stuff. What you need to do is to create a kernel environment so that gnat works like you want. This includes creating your own kernel version of gnat (it means you will have to do something to the run-time library). Don't forget to turn on run time checking! Greetings,