From: "Tarjei T. Jensen" <tarjei.jensen@kvaerner.com>
Subject: Re: GNAT Question
Date: Wed, 21 Mar 2001 10:30:07 +0100
Date: 2001-03-21T10:30:07+01:00 [thread overview]
Message-ID: <999sb0$cnk5@news.kvaerner.com> (raw)
In-Reply-To: eIPt6.13980$Q4.2571687@news2-win.server.ntlworld.com
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,
next prev parent reply other threads:[~2001-03-21 9:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-20 16:25 GNAT Question chris.danx
2001-03-20 19:12 ` Ted Dennison
2001-03-20 19:37 ` Gisle Sælensminde
2001-03-30 20:19 ` Stefan Skoglund
2001-03-20 20:40 ` Hans-Olof Danielsson
2001-03-20 20:49 ` (null)
2001-03-20 21:11 ` chris.danx
2001-03-20 21:55 ` Ted Dennison
2001-03-20 22:10 ` chris.danx
2001-03-20 22:41 ` Ted Dennison
2001-03-20 23:03 ` chris.danx
2001-03-21 9:30 ` Tarjei T. Jensen [this message]
2001-03-20 22:17 ` Robert A Duff
2001-03-21 0:39 ` Randy Brukardt
-- strict thread matches above, loose matches on Subject: below --
2002-08-11 22:59 GNAT question Fred Stihler
2002-08-12 2:56 ` Robert Dewar
2002-08-12 12:33 ` Fred Stihler
2002-08-12 4:37 ` tmoran
2002-08-12 12:37 ` Robert Dewar
2002-08-12 23:48 ` Fred Stihler
2002-08-12 18:35 ` tmoran
2002-08-12 23:51 ` Robert Dewar
2000-08-10 0:00 gnat question gregfisher
2000-08-11 0:00 ` Tarjei T. Jensen
2000-08-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox