comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: Specifying parameter passing convention and place (register)
Date: 8 Jul 2004 07:06:15 -0500
Date: 2004-07-08T07:06:15-05:00	[thread overview]
Message-ID: <6Bv31gVVqUnl@eisner.encompasserve.org> (raw)
In-Reply-To: opsascnzjtp4pfvb@bram-2

In article <opsascnzjtp4pfvb@bram-2>, "Nick Roberts" <nick.roberts@acm.org> writes:
> On 7 Jul 2004 13:54:01 -0500, Larry Kilgallen <Kilgallen@SpamCop.net>  
> wrote:

>> but if you want the following shortcut it is somewhat weirdly
>> named:
>>
>> 	http://h71000.www7.hp.com/commercial/ada/documentation.html
> 
> Well that weird link redirects me to another page, which, believe it or  
> not, is practically the /second/ place I looked! Unfortunately, although  
> this page has links to various bits of Ada documentation, none of that  
> documentation has the information I need. I have looked in the LRM listed  
> there (a PDF file), which lists the implementation-specific pragmas and  
> attributes, but there are neither any pragmas nor any attributes relating  
> to parameter passing mechanisms.

Did you look in section 13.9a of that document ?
In particular, look for the word MECHANISM.

> Do I take it DEC Ada doesn't, in fact, have any such pragmas or attributes?
> 
>> I thought Robert Dewar had stated they were extending the DEC
>> features to their other platforms.
> 
> I don't know, but it doesn't sound very likely that mechanisms relating to  
> VAX/VMS or Alpha/VMS (or VAX/Unix) will be very transferable to other  
> architectures/environments.

Certainly the mechanisms VALUE and REFERENCE are of general use.

The mechanism DESCRIPTOR is only for where a large variety of string
representations are supported on the operating system.  For environments
where data passed between languages will never include bounded strings,
bit strings, non-contiguous arrays, then defaulting to your local form
of DESCRIPTOR for a string starting at offset 1 is adequate.

You could add a mechanism called REGISTER, and if GNAT does this
machine code insertion, I am surprised ACT has not added such a
mechanism.



  reply	other threads:[~2004-07-08 12:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-05 23:25 Specifying parameter passing convention and place (register) Nick Roberts
2004-07-06 12:58 ` Larry Kilgallen
2004-07-06 17:30   ` Nick Roberts
2004-07-07  4:14     ` Larry Kilgallen
2004-07-07 13:13       ` Nick Roberts
2004-07-07 18:54         ` Larry Kilgallen
2004-07-07 21:01           ` Nick Roberts
2004-07-08 12:06             ` Larry Kilgallen [this message]
2004-07-08 15:29               ` Nick Roberts
2004-07-08 14:09             ` Bob Spooner
2004-07-08 18:10               ` Nick Roberts
2004-07-08 12:27           ` Georg Bauhaus
2004-07-08 15:38             ` Larry Kilgallen
2004-07-08 18:03               ` Georg Bauhaus
2004-07-09 21:29 ` Keith Thompson
2004-07-09 21:50   ` Nick Roberts
replies disabled

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