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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7d661b6f053d692e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Help writing ada booting kernel Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Mon, 16 Jul 2007 03:02:44 GMT NNTP-Posting-Host: 12.64.90.232 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1184554964 12.64.90.232 (Mon, 16 Jul 2007 03:02:44 GMT) NNTP-Posting-Date: Mon, 16 Jul 2007 03:02:44 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:16480 Date: 2007-07-16T03:02:44+00:00 List-Id: 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 , Xianzheng Zhou 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