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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Kernel Syscall from Ada? Date: Thu, 23 Jun 2016 17:18:12 -0500 Organization: JSA Research & Innovation Message-ID: References: <2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1466720291 4797 24.196.82.226 (23 Jun 2016 22:18:11 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 23 Jun 2016 22:18:11 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:30897 Date: 2016-06-23T17:18:12-05:00 List-Id: "Diogenes" wrote in message news:2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com... >Is there a simple way to make a direct (Linux)Kernel syscall from Ada >without >using the system C library? i.e. Make a direct call as in Assembler? On almost all modern systems, a system call IS a call to some C subprogram. (On Windows, they're calls into a DLL; Linux appears similar although I've never studied the details.) There's nothing like the set-registers and trap like there was in the old days on MS-DOS, XENIX, and other systems. So the only way to make a system call is via aspect Import to the needed C routine. (On Windows, I''d expect that a program that didn't do any system calls would be much smaller than a "normal" program; Windows needs some stuff added to every program; it doesn't have anything to do with Ada per-se.) Randy.