From: anon@anon.org (anon)
Subject: Re: Help writing ada booting kernel
Date: Mon, 16 Jul 2007 03:02:44 GMT
Date: 2007-07-16T03:02:44+00:00 [thread overview]
Message-ID: <odBmi.323282$p47.183017@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: f7d8vk$4tt$1@aioe.org
But Ada was never meant to be use as a Stand-Alone program without
some kind of interface code from the BOOT ROM to the main procedure.
So unless you purchase an Ada compile, which can produce Stand-Alone
code you must write a bootloader for your Ada program. This bootloader
is normally written in either C or Assembly., This is because the Free
GNAT Ada Compiler/Binder/Linker does not include a way of creating
Stand-Alone code.
As for low-level code, you have two options. The first is to use the
pragma Import/Export statement. While the second is to use the
Ada ASM instruction and build your assembly routines.
The Best thing is go to your local book store and see if they have any
books on Ada. The other is to check out http://www.adapower.com
In <f7d8vk$4tt$1@aioe.org>, Xianzheng Zhou <joe@lgsolutions.com.au> writes:
>Hello all,
>I'm a new to Ada and very interested in learning this language.
>Currently, I'm trying to write a small program in ada compiled by gnat,
> to boot an ordinary PC, something like grub. I'm wonderring whether
>ada can do this low-level task and how may I use the gnat progma to
>achieve this. Please advise if you know how to do this.
>
>Many thanks.
>
>Joe
next prev parent reply other threads:[~2007-07-16 3:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-15 13:55 Help writing ada booting kernel Xianzheng Zhou
2007-07-15 14:44 ` Wiktor Moskwa
2007-07-16 1:59 ` Xianzheng Zhou
2007-07-16 6:07 ` Wiktor Moskwa
2007-07-16 11:01 ` Xianzheng Zhou
2007-07-16 11:18 ` Xianzheng Zhou
2007-07-16 12:21 ` Wiktor Moskwa
2007-07-16 21:02 ` anon
2007-07-17 9:15 ` Xianzheng Zhou
2007-07-16 3:02 ` anon [this message]
2007-07-16 11:16 ` Xianzheng Zhou
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox