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 X-Google-Attributes: gid103376,public From: nasser@apldbio.com (Nasser Abbasi) Subject: Re: An Interface question Date: 1996/07/17 Message-ID: #1/1 X-Deja-AN: 169243931 sender: news@biosys.apldbio.COM references: <4sgmgc$n66@idiom.com> to: ocremel@idiom.com (Olivier Cremel) original-sender: nasser@apldbio.com organization: Applied BioSystems newsgroups: comp.lang.ada Date: 1996-07-17T00:00:00+00:00 List-Id: In article <4sgmgc$n66@idiom.com> ocremel@idiom.com (Olivier Cremel) writes: 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. Short of writing assembly wrappers, is there a way ? Thanks, Olivier. You dont have to use Assembly, you can use the language BLISS :) BLISS allows register linkage in calls. actually you bring a good question, This same issue happened in VMS, one was not able to interface to many of VMS original internal code (was was written in MACRO 32 assembler) by using say C or other high level languages becuase many of those VMS entry points expected to pull the arguments from specific registers, not from the stack, or may be even a combination of the two cases. This is why BLISS was used allot in VMS internal code, since BLISS was designed to allow the caller to specify register and/or stack linkage. I remember there was a project in DEC to allow C to also do that (i.e add register linkage to C) so that one can use C in VMS system programming, I wonder what ever happened to that ? .. opps.. soory I am getting off the subject.. Nasser -- Nasser Abbasi. C/C++/Ada Solaris. GeneAssist - A client/server application for Nucleic acid and protein sequence search and analysis. Perkin Elmer - Applied BioSystem division. email: nasser@apldbio.com MSEE(control), MSCS, MSCE, FM (Fide Chess Master).