public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Ada/GNAT runtime library?
@ 2002-10-18  8:27 Robert Dewar
  2002-10-18  8:56 ` Robert Dewar
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  8:27 UTC (permalink / raw)
  To: berndtrog, dewar, gcc

> > It's easy enough to build a GNU/Linux Alpha version
> > of GNAT, others have done it for sure.
> 
> So, we can add GNU/Linux Alpha to the list?

No, because the necessary tasking files are not there. Someone has to
put them there. We don't have them because we have not done this port.
When I say it is easy to build, I mean that it is not that hard to 
do the work for the port, not that you can press a button and build
this version.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18 15:34 Bernd Trog
  0 siblings, 0 replies; 32+ messages in thread
From: Bernd Trog @ 2002-10-18 15:34 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gcc

Joel Sherrill wrote:
> There are multiple pieces required
> to support an arbitrary language/platform 
> combination.

[ .. ]
Thanks for all details, Joel!

It look like a major project to me.
Maybe its better to abandon this idea, and keep the
developers fixing all the bugs :-/

> For a language/platform combination to work, these
> general categories must be supported in gcc assuming
> that the language and platform are supported at all:
> 
>    + port backend must support all features required
>      by language frontend
>    + run-time must be ported to CPU family   
>    + run-time must be ported to platform
 

> I would think that the existence of this list would
> help people choose a project to work on.

But maybe not worth the effort - it has to be
maintained, too.


> > What about Ada on GNU/Linux ARM? 
> In this case, the first requirement I listed above 
> is not satisfied.  

and Geert Bosch <bosch@gnat.com> wrote in
<41069ECB-E21A-11D6-A8D0-00039344BF4A@gnat.com>

> GNAT is designed to only need a subset of the
> run-time library which doesn't require a
> target-specific implementation.

Well, I'm sorry, but I don't get it. 

What are these features?(pointers are welcome)
Which backends don't support the 'Ada-features'?
Are these just m68k, sh, (ARM; work in progess)?

What about the AVR backend, does it support the
'Ada-features'?


Bernd






__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18 11:00 Robert Dewar
  2002-10-18 11:02 ` Florian Weimer
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18 11:00 UTC (permalink / raw)
  To: dewar, fw; +Cc: berndtrog, gcc

> These are GNU libc bugs (or missing features) and should be fixed
> there.


No, that's quite wrong, on most targets the thread package is supplied
by the manufacturer it has nothing to do with GNU libc.

> Timer frequencies?

Just an example, the issue of how you know the timer frequency, whether
the timer has to be initialized etc.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  9:49 Robert Dewar
  2002-10-18 10:39 ` Florian Weimer
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  9:49 UTC (permalink / raw)
  To: berndtrog, fw; +Cc: dewar, gcc

> autoconf could probably be used to generate these files.

I think that's right, but this would only take care of the easy things.
The difficult things (subtle semantic differences in thread packages,
timer frequencies etc) are a harder nut to crack.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  9:10 Robert Dewar
  2002-10-18  9:44 ` Joel Sherrill
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  9:10 UTC (permalink / raw)
  To: berndtrog, joel.sherrill; +Cc: dewar, gcc

> In this case, the first requirement I listed above is not
> satisfied.  The ARM port backend and Ada do not get along
> well enough to complete a build of Ada.  Similarly for the
> m68k and sh.

That's what we are correcting. We now have a version internally that is
starting to show signs of life, and will contribute changes ASAP.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  8:56 Robert Dewar
  2002-10-18 15:47 ` Bernd Trog
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  8:56 UTC (permalink / raw)
  To: berndtrog, dewar, gcc

> OK, I'll take a look on the 705 .ads files .........

Well you should look at only the ones relating to the particular
function you are interested in. If you are interested in the
interface to tasking from the compiler for example, look at the
specs that relate to this

(rtsfind.ads is a useful centralized catalog of runtime interfaces,
and you will see that only a small fraction of the files are used
by the compiler. The great majority of the ads files you mention
have nothing to do with compiler/runtime interface).

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  8:34 Robert Dewar
  2002-10-18  9:17 ` Robert Dewar
  2002-10-18 15:54 ` Bernd Trog
  0 siblings, 2 replies; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  8:34 UTC (permalink / raw)
  To: berndtrog, dewar, gcc

> What about Ada on GNU/Linux ARM? (its a 32 bit, too)

Who knows? Depends whether the linux threads interface is identical or not.
I don't know if anyone has tried this. 

We are by the way in the process of doing a GNAT port for the ARM
(although not on GNU/Linux) so we will be shaking out problems in that
port (and a lot of the problems will of course apply to any GNU/Linux
port on ARM as well).

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  8:21 Robert Dewar
  0 siblings, 0 replies; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  8:21 UTC (permalink / raw)
  To: berndtrog, dewar, gcc, pavenis

> I have tested). I'm almost sure there are DOS caused limitations
> (eg. tasking is unlikely to work, etc).

Right, an Ada implementation without tasking is like a car without
any headlights. OK for limited use, but really not qualifying for
being regarded as an implementation of Ada. That's why I said that
I thought the DOS port had never been completed. There was a full
featured DOS port early on (done by Doug Rupp who now works for
ACT, but not on the DOS port, which never had any commercial
customers).

Note incidentally that the name of the language is Ada, not ADA. Us
Ada folks are picky about that. It's named after a person (Ada Augusta
Byron, Countess of Lovelace (*), given credit as the worlds first programmer
because of her work for Babbage). It is not an acronym, ADA may be the
American Dental Associationl, or the Americans with Disabilities Act,
(**) but it is not a programming language :-)


(*) This connection explains the name Linda that Gerlernter chose for
his parallel programming language. it was named after the other
(in)famous Lovelace.

(**) There is a wonderful poster with Clinton signing a bill, with a
caption something like "ADA IS IMPORTANT TO YOU" :-)

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  4:21 Robert Dewar
  2002-10-18  7:21 ` Bernd Trog
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  4:21 UTC (permalink / raw)
  To: berndtrog, dewar, gcc

> Are there any documents about the 'abstraction level'?

I have no idea what this means, if you are asking about the levels of
interfaces, this is all self evident in the various package specs (Ada
documents all such interfaces more or less automatically :-)

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-18  0:06 Robert Dewar
  2002-10-18  6:23 ` Bernd Trog
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Dewar @ 2002-10-18  0:06 UTC (permalink / raw)
  To: berndtrog, dewar, gcc

> Was DOS the reason for the 8.3 file names? 

Well DOS and all the formats (e.g. floppy and CD formats) that borrowed
this restriction, plus keeping file names short is convenient anways.
Actually gcc has largely maintained the 8+3 rule itself.

> Thanks for the list, Robert!
> Why not put it somewhere on gcc.gnu.org?

It's clear in the makefile, and publishing the list might make people think
that GNAT can be built for all these targets which is not the case (at least
we have not tried some of them).

> What puzzels me, is the close dependancy between the
> OS and the CPU for the GNARL.
> e.g.
> GNU/Linux x86 works
> GNU/Linux Alpha don't work

Why should this puzzle you. The interface to the threads library is
different in these two versions of GNU/Linux, in particular, one is
32 bit and one is 64-bit.

It's easy enough to build a GNU/Linux Alpha version of GNAT, others have
done it for sure.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-17 17:31 Robert Dewar
  0 siblings, 0 replies; 32+ messages in thread
From: Robert Dewar @ 2002-10-17 17:31 UTC (permalink / raw)
  To: berndtrog, bosch; +Cc: gcc

<See LIBGNAT_TARGET_PAIRS in ada/Makefile.in.
However, for the GCC 3.x back end, many of these will not work
yet. Targets with highest chance of success are x86/GNU Linux,
SPARC/Solaris and PA-RISC/HP-UX.
>>


NT/XP is also in good shape, but this is harder to build for all
sorts of reasons.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Ada/GNAT runtime library?
@ 2002-10-17 17:10 Robert Dewar
  2002-10-17 22:18 ` Bernd Trog
  2002-10-18  5:29 ` Andris Pavenis
  0 siblings, 2 replies; 32+ messages in thread
From: Robert Dewar @ 2002-10-17 17:10 UTC (permalink / raw)
  To: berndtrog, gcc

<<does anyone knows for which OSs the GNAT runtime
library works?
Or even better, where it is documented?
>>

This is a confused question. There is no "the GNAT runtime", instead
the GNAT runtime is different for every system. Have a look at the
makefile to see what targets are supported.

<<DOS, Linux, OS2, OpenVMS, win32

Is this list complete?
>>

As far as I know, the DOS port was never completed.

The OS/2 port is by now rotting, and a lot of teh technology is
unfortunately way behind.

A partial list of targets for which runtimes exist are

IRIX
HPUX
Tru64
Solaris SPARC
Solaris x86 (but ACT has abandoned this port, so it will start to rot :-(
NT/XP (also works on WIN98/ME more or less)
OpenVMS Alpha
GNU/Linux x86
Interix (has a new name, I forget what)
AIX

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Ada/GNAT runtime library?
@ 2002-10-17 14:38 Bernd Trog
  2002-10-17 15:00 ` Geert Bosch
  0 siblings, 1 reply; 32+ messages in thread
From: Bernd Trog @ 2002-10-17 14:38 UTC (permalink / raw)
  To: gcc

Hi,
does anyone knows for which OSs the GNAT runtime
library works?
Or even better, where it is documented?

After digging in the gcc/ada/ tree for some time I
found 
some 'OS-strings':

DOS, Linux, OS2, OpenVMS, win32

Is this list complete?

Thanks,
Bernd


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2002-10-20 17:30 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18  8:27 Ada/GNAT runtime library? Robert Dewar
2002-10-18  8:56 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2002-10-18 15:34 Bernd Trog
2002-10-18 11:00 Robert Dewar
2002-10-18 11:02 ` Florian Weimer
2002-10-20 22:16   ` Nix
2002-10-18  9:49 Robert Dewar
2002-10-18 10:39 ` Florian Weimer
2002-10-18 10:41   ` Arnaud Charlet
2002-10-18  9:10 Robert Dewar
2002-10-18  9:44 ` Joel Sherrill
2002-10-18  8:56 Robert Dewar
2002-10-18 15:47 ` Bernd Trog
2002-10-18  8:34 Robert Dewar
2002-10-18  9:17 ` Robert Dewar
2002-10-18 15:54 ` Bernd Trog
2002-10-18  8:21 Robert Dewar
2002-10-18  4:21 Robert Dewar
2002-10-18  7:21 ` Bernd Trog
2002-10-18  0:06 Robert Dewar
2002-10-18  6:23 ` Bernd Trog
2002-10-18  7:28   ` Joel Sherrill
2002-10-17 17:31 Robert Dewar
2002-10-17 17:10 Robert Dewar
2002-10-17 22:18 ` Bernd Trog
2002-10-18  9:27   ` Florian Weimer
2002-10-18  5:29 ` Andris Pavenis
2002-10-17 14:38 Bernd Trog
2002-10-17 15:00 ` Geert Bosch
2002-10-17 15:21   ` Bernd Trog
2002-10-17 15:48     ` Geert Bosch
2002-10-17 20:13       ` Bernd Trog

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).