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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Kernel Syscall from Ada? Date: Thu, 12 Jul 2018 15:59:19 -0500 Organization: JSA Research & Innovation Message-ID: References: <2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com> Injection-Date: Thu, 12 Jul 2018 20:59:20 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="16933"; mail-complaints-to="news@jacob-sparre.dk" 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.7246 Xref: reader02.eternal-september.org comp.lang.ada:53781 Date: 2018-07-12T15:59:19-05:00 List-Id: "Dan'l Miller" wrote in message news:e9c05e73-ea72-4fc5-a671-fecd3fdf0c11@googlegroups.com... ... >One of the more succinct summaries of the legacy 8086, 32-bit x86, and >64-bit x86-64: >https://stackoverflow.com/questions/12806584/what-is-better-int-0x80-or-syscall > >Randy is mostly accurate: interrupt 80?? has faded into antiquity and >currently >everything about system calls boils down to C subprograms. Interesting; I've never seen anything about Linux system traps in the past. That would make it easier to port Janus/Ada to Linux without having to involve GCC (one would want an *option* to link with GCC, but ideally no *requirement* to do that). The old SCO Unix compiler directly used system traps to talk to the kernel; no C libraries were required. That meant it was easy to create Ada programs just using Ada tools and there wasn't any dependencies on anything else. That's not really practical for Windows, so I'm surprised to find out that Linux is more like the old MS-DOS and Unix systems in this regard. Randy.