From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!Lx7EM+81f32E0bqku+QpCA.user.46.165.242.75.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Ada versus Pascal Date: Mon, 25 Oct 2021 09:40:38 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <744e718c-0872-49c7-a3ad-2640ae262e4cn@googlegroups.com> <42fde091-838b-4359-868a-0e7e4662e439n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="25342"; posting-host="Lx7EM+81f32E0bqku+QpCA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:63081 List-Id: On 25/10/2021 09:23, Niklas Holsti wrote: > On 2021-10-25 2:24, 711 Spooky Mart wrote: > > >> Does modern Ada have facility for writing boot loaders, inline Assembly, >> kernels, etc.? > Boot loaders and kernels are just another application area any general purpose language can target, even Ada. > I'm not very familiar with boot loaders, but I see no reason why a boot > loader could not be written in Ada. However, usually (and as for other If you're talking x86 on PC's, then you'll need to read up on the x86 boot process in which x86 starts up in 16-bit (real) mode, then has to be taken into protected and then long modes. You would need a GCC that can target all those modes. > languages) there will be a small start-up routine in assembly language > to initialize the processor, set up a stack, and so forth. The "Ada Bare > Bones" project is doing something like this, I believe: > https://wiki.osdev.org/Ada_Bare_bones. Thanks for pointing out my project :) It's out of date and doesn't build as is any more, but others have written Ada pages on that site since.