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,db8388c6b42d398 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!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: How do I go about creating a minimal GNAT runtime? Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Tue, 03 Mar 2009 02:00:59 GMT NNTP-Posting-Host: 12.65.24.245 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1236045659 12.65.24.245 (Tue, 03 Mar 2009 02:00:59 GMT) NNTP-Posting-Date: Tue, 03 Mar 2009 02:00:59 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:3880 Date: 2009-03-03T02:00:59+00:00 List-Id: First, my comments was for 'Dimonax' not you. Second, you know that a minimal Ada runtime is also called an 'Embedded' Ada runtime system. And all Ada vendors including Adacore's GNAT have a package or a set of packages that can produce code for most 'Embedded' processors including the normal Intel processors (80386 to P4). This list could also, include (8088 to 80286) but those processors are limited in demand so you may have to pay extra. As for GNAT the GNU GCC no longer support 8/16 bit code so GNAT does not support those type of processors. This set of processor should now include the current set of processors like the Intel Core 2 processors series when they include the Ada 2005 specs. And in a few months they could include the Core i7 series aka (i786). Now, as for your ">No compiler can be good at *everything*." statement you forget assembly, which can do everything. It's problem is that it not that portable and most programmers prefer the ease of a high-level language. All high-level languages like "C", Java" and even "Lisp" were never designed to write an operating system. But C is the main workhorse language for todays OS. And Sun built a "Net OS" they called "JAVAOS" which was written entirely in Java, they have since abandoned it. Then if you go back to the late 1970s and 1980s a few companies such as "TI" and "Symbolics" used "Lisp" to create a "Lisp" Computer where the processor was wired to used "LISP" functions as the processor language and the OS was written in 100% "LISP". So should "Ada" become the next language for a OS using only Ada? Why not! It just that the people who are starting down this road should know that its not that easy. And they may have to rewrite the entire GNAT runtime system, if they use GNAT as the Ada compiler system or they should get ready to pay big time if Adacore create a new GNAT runtime. In , "Randy Brukardt" writes: >"anon" wrote in message >news:R7Bql.409687$Mh5.142056@bgtnsc04-news.ops.worldnet.att.net... >> You need to understand what this person means by "minimal GNAT runtime" >> system. From his web site, he means no Linux, Windows or other OS, aka >> the Ada program is the OS and all libraries must be static. That is, >> until he creates a dynamic or shared library loader, but that means he >> first must build a storage device driver with a file system. > >I understand exactly that. But you chose to ignore my point... > >> A problem with GNAT and this design is that GNAT uses around 50 packages >> ... > >....which is that GNAT is *not* designed for this sort of use. Yes, it can be >made to fit it, sort of, but it wasn't designed to minimize code size / >runtime size in the way that some other compilers (like Janus/Ada) were. > >The old saw "Patient: it hurts if I do X. Doctor: Don't do X." surely >applies here. If it is hard to do something with GNAT, use a more >appropriate tool. No compiler can be good at *everything*. > >.... >> All of this means it a big job. This could help to explain why Adacores >> charges $15K per years for someone to get those special runtime system >> with GNAT PRO series. > >We used to have a bare-machine version of Janus/Ada, as did many other Ada >vendors, but they were all dropped due to lack of demand. Which is probably >why GNAT has a design that makes that hard - they didn't think it was that >important. It takes $$$ to show that sort of interest. > > Randy. > >