comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: An Interface question
Date: 1996/07/16
Date: 1996-07-16T00:00:00+00:00	[thread overview]
Message-ID: <dewar.837561755@schonberg> (raw)
In-Reply-To: 4sgmgc$n66@idiom.com


"I'm using an m68k OS (AmigaOS) where system calls expect arguments in
registers, not on the stack as normal convention has it.

I've been reading all Ada95 documents I have but I haven't found a way
to express that convention either for me to access a system call  or
to provide one."


What should be done is that your Ada95 compiler should have a convention
called perhaps System_Call that provides arguments in registers as
required. Then you write

   pragma Import (System_Call, name-of-system-routine);

Obviously there is nothing in the Ada95 documents about this, since it is
highly implementation specific, but a convention such as the one above
is the proper way of handling things.





  reply	other threads:[~1996-07-16  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-16  0:00 An Interface question Olivier Cremel
1996-07-16  0:00 ` Robert Dewar [this message]
1996-07-17  0:00 ` Nasser Abbasi
replies disabled

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