Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: runtime sys...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 5682 of 5831
Post > Topic >>

Re: runtime systems

by anon@[EMAIL PROTECTED] (anon) May 4, 2008 at 05:57 AM

In <5b8b9ed2-e03b-4f97-8666-9a11a5450a32@[EMAIL PROTECTED]
>,
emconuk <emconuk@[EMAIL PROTECTED]
> writes:
>Hello.
>
>I would like to find out some more about available Ada runtime
>systems.
>
>I know that Adacore have a runtime system ****ted to various cross
>platforms (but I can't figure out its licensing), and I know about the
>other commercial offerings from GHS and Aonix.  I'm also aware of
>MarteOS and RTEMS as possible non-commericial offerings.
>

First, for commercial Ada(s). Most Ada vendors are Intel/Mac systems.
There are others such as IBM versions which can be use on AIX, Linux, 
or Windows systems.

Now, for non-commericial Ada most programmers use GNAT.

For "GNAT Ada 2005" and a number of "GNAT Ada 95" versions, the 
license is GPL 2 which has been updated to GPL 3 in a number of ****ts. 
All ****ts of the compiler must also be under GPL 2 or 3 and open source 
only (see "GNAT Technology FAQ" at libre.adacore.com). 


As for MarteOS and RTEMS OSs they use GNAT as their main language and 
have ****ted the existing GNAT RTL to fit their code. But the bootstrap 
and startup code is still written in C and ASM. License is GPL 2 or 3.


>
>However, I would like to hear about any other solutions out there.  I
>used to use xd-ada and it had quite a simple little rts that could be
>customised for different hardware platforms.  I don't want an OS - I
>just want to hear about baremetal runtime systems.
>
>For example, I really like the look of the latest Gaisler Reasearch
>LEON3 processor and perhaps other FPGA soft-cores.  Anyone have a non-
>commericial Ada rts running on those type of platforms ?
>



As for a new RTL.  The GNAT RTL uses both Ada and interface C 
routines to link into the OS which must be rewritten. The C code is 
used because Ada and GNAT does not sup****t conditional compiling.

The RTL is only part of the problem the main isuue is the compiler.

The GNAT compiler uses a two phases compiler system to generate 
code. The main compiler program is called GNAT1 and starts in file 
"gnat1drv.adb" which translates the Ada source code into the target 
processor assembly code.  This is done by GNAT1 first calling the 
frontend compiler ("Frontend.adb") which is written in Ada (no 
modification is needed). Then if code is to be generated, GNAT1 
calls the Backend routine ("back_end.adb") which in turn calls a C 
routine (GNAT GIGI) found in file "trans.c" to perform the source code 
generation for the object computer (major modification is needed to 
produce code for new processor). (Up to 500K lines of code). Then the 
second phase is to call the an assembler (GCC "as") to processor the 
object code for that processor if GNAT1 finishes with no errors (must 
have or write a ****ted version of the GCC "as"). These two phases are 
perform at the request of the GCC "gcc" compiler.

So, first look for a GCC C compiler package for the processor that you 
wish to use. This package should have the GCC C compiler "gcc", an 
assembler "as" as well as the linker "ln" with libraries. And if your 
luck you may find an GNAT Ada ****t or links to an Ada project, there.


>
>thanks.
>Martyn
>
>
 




 5 Posts in Topic:
runtime systems
emconuk <emconuk@[EMAI  2008-05-03 12:35:25 
Re: runtime systems
Lucretia <lucretia9@[E  2008-05-03 19:51:42 
Re: runtime systems
"Ed Falis" <  2008-05-04 16:44:37 
Re: runtime systems
anon@[EMAIL PROTECTED] (  2008-05-04 05:57:34 
Re: runtime systems
Lucretia <lucretia9@[E  2008-05-04 12:08:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:09:35 CDT 2008.