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=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada versus Pascal Date: Mon, 25 Oct 2021 11:23:49 +0300 Organization: Tidorum Ltd 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 X-Trace: individual.net gITMdMau6Wiy8/txWFCx+QYUpTcQD51RbQrRtwf3cV+lB54Psx Cancel-Lock: sha1:2wpKKjralKd7hYWgvnycHy6g/S0= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63080 List-Id: On 2021-10-25 2:24, 711 Spooky Mart wrote: > Does modern Ada have facility for writing boot loaders, inline Assembly, > kernels, etc.? In-line assembly is supported by most of the Ada compilers I have used, but the syntax may differ across compilers. The run-time systems (real-time kernels) associated with Ada compilers for bare-board embedded systems are typically written in Ada, with minor amounts of assembly language inserted for the very HW-specific parts such as HW context saving and restoring. 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 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.