From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4496739ae1ce2da4,start X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: An Interface question Date: 1996/07/16 Message-ID: #1/1 X-Deja-AN: 168582123 references: <4sgmgc$n66@idiom.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-16T00:00:00+00:00 List-Id: "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.