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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,63ac7dccda611bc3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Build raw binary on Windows References: Date: Sun, 04 Apr 2010 21:39:38 -0400 Message-ID: <82aatiu17p.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:tHArXuYhnp1J5bUoxzK08tWDFqY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 321b44bb93fdde197caa729986 Xref: g2news2.google.com comp.lang.ada:10839 Date: 2010-04-04T21:39:38-04:00 List-Id: brian writes: > I've been poring over megabytes of documentation until my eyes started > bleeding, but I just cannot figure out how to tell GNAT to create a > raw binary (no header) executable using GNAT hosted on Windows. I > need to write code that runs on x86/x64 bare metal (no operating > system). > > Any pointers would be greatly appreciated! Read up on 'pragma No_Run_Time'. It's labeled obsolescent, so apparently there's a better way to do the same thing. I'm not clear what you mean by "no header". You need some way to load the code into the processor. I assume you are first writing a boot prom, which will then load the rest of the code. So you need a tool that will translate the object file into hex for a prom burner. Gnu binutils must have that somewhere. -- -- Stephe