comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Kernel Syscall from Ada?
Date: Thu, 23 Jun 2016 17:18:12 -0500
Date: 2016-06-23T17:18:12-05:00	[thread overview]
Message-ID: <nkhn72$4lt$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com

"Diogenes" <phathax0r@gmail.com> 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.




  parent reply	other threads:[~2016-06-23 22:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-23  8:36 Kernel Syscall from Ada? Diogenes
2016-06-23 10:58 ` Björn Lundin
2016-06-23 16:28   ` Per Sandberg
2016-06-23 22:18 ` Randy Brukardt [this message]
2018-07-12 19:07   ` Dan'l Miller
2018-07-12 20:59     ` Randy Brukardt
2016-06-24  1:13 ` Xavier Petit
2016-06-24 22:23 ` Florian Weimer
2018-07-11 22:38 ` alexgrantbenedict
2018-07-12  1:32 ` Dan'l Miller
2018-07-12  8:19   ` Lucretia
2018-07-12 15:27     ` Dan'l Miller
2018-07-12 17:27       ` Lucretia
replies disabled

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