comp.lang.ada
 help / color / mirror / Atom feed
From: Patrick <patrick@spellingbeewinnars.org>
Subject: Ada  "library only" compiler ?
Date: Fri, 20 Jul 2012 13:05:29 -0700 (PDT)
Date: 2012-07-20T13:05:29-07:00	[thread overview]
Message-ID: <2879c45e-f8e0-4434-9f82-968c585a4539@googlegroups.com> (raw)

This thread could be a bit inflammatory, please bear in mind:
-I love Ada
-I've been with Ada for 7 months and I am only learning it.
-Programming is not my day job
-I slept 5 minutes last night, in a chair, in a hospital.
-I have good intentions, this is not meant to be hostile.

I spent a few minutes today going through GNAT internals. I was just planning on looking at high quality Ada code and just studying a well respected project.

I was surprised to see so much C code. I know  Ada has facilities for low level programming but it seems to be that the momentum of C hasn't allowed for Ada to grow as much as it could have in this department. It seems to me that even within GNAT, it has just been easier to piggyback on C, rather then rewrite things in Ada and ASM.

So again, I don't mean to be harsh but if we are always building on C through the GNAT compilation progress would it be logical to decouple the two to create a simple Ada "as library" compiler? It seems that we can't open a file or get a command line argument without C anyways.

Lua is called a language and has it's own file extension etc but it's developers are open about the fact that it is not a language but a C library.

Would a compiler that took this approach to the language be much smaller and simpler and perhaps make it easier to get Ada onto other devices?

So I am clueless at the moment as to how GNAT implements Tasking, OO or even the Ada type system but if I studied and eventually moved these to an Ada to ASM translator then a C boilerplate file(s) could implement what the Ada-as-a-language implementation would need to behave as a language. The C boilerplate piece would be in one place and could easily be reworked by anyone.

Just some sleep deprived daydreaming and this would take me months if not years to get done at the part time pace I would have to do it at but would it be useful if it did get done?

If I used the FSF code base rather then straight from Adacore the code could also be used to generate proprietary code at no cost like the FSF version can. I really hope it will be easier one day to write full implementation Ada embedded code for a larger number of devices then it is now.

Thanks for reading-Patrick



             reply	other threads:[~2012-07-26 14:36 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20 20:05 Patrick [this message]
2012-07-20 21:11 ` Ada "library only" compiler ? Niklas Holsti
2012-07-20 21:47   ` Ludovic Brenta
2012-07-20 22:25   ` Peter C. Chapin
2012-07-20 22:51     ` Ludovic Brenta
2012-07-21  0:32       ` Randy Brukardt
2012-07-21 12:39         ` Pascal Obry
2012-07-22  4:59           ` Shark8
2012-07-22  7:04             ` Pascal Obry
2012-07-22 10:17           ` Florian Weimer
2012-07-24  1:54           ` Randy Brukardt
2012-07-24 16:50             ` Pascal Obry
2012-07-24 18:01               ` Vasiliy Molostov
2012-07-24 21:30                 ` Pascal Obry
2012-07-25  6:33                   ` Vasiliy Molostov
2012-07-25 23:44                   ` sbelmont700
2012-07-25 23:34               ` Randy Brukardt
2012-07-21 11:05     ` Niklas Holsti
2012-07-20 23:30   ` Patrick
2012-07-21 16:47     ` Niklas Holsti
2012-07-21 17:47       ` Patrick
2012-07-21 19:22         ` Simon Wright
2012-07-21 19:38           ` Patrick
2012-07-21 22:53         ` Brian Drummond
2012-07-22  3:25           ` Patrick
2012-07-22 17:54             ` Brian Drummond
2012-07-22 17:59               ` Brian Drummond
2012-07-22 18:44                 ` Patrick
2012-07-22 21:03                   ` Brian Drummond
2012-07-25 19:10                   ` J-P. Rosen
     [not found]               ` <m2a9yrsbf5.fsf@nidhoggr.home>
     [not found]                 ` <jui36a$hs0$1@dont-email.me>
2012-07-23 10:10                   ` Simon Wright
2012-07-24 10:55                     ` Brian Drummond
2012-07-22 21:25             ` Niklas Holsti
2012-07-22 22:00               ` Patrick
2012-07-22 21:18         ` Niklas Holsti
     [not found]   ` <olpj085ii9fpifpligh6jerghoaieiim1d@invalid.netcom.com>
2012-07-20 23:38     ` Patrick
2012-07-21 13:12     ` Niklas Holsti
2012-07-21  0:27   ` Randy Brukardt
2012-07-21  7:36     ` Dmitry A. Kazakov
2012-07-21 13:31     ` Niklas Holsti
2012-07-23  5:02 ` Miles Bader
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox