comp.lang.ada
 help / color / mirror / Atom feed
From: alexgrantbenedict@gmail.com
Subject: Re: Kernel Syscall from Ada?
Date: Wed, 11 Jul 2018 15:38:54 -0700 (PDT)
Date: 2018-07-11T15:38:54-07:00	[thread overview]
Message-ID: <2f8bda5b-965e-48d1-900e-97d6f7cfc501@googlegroups.com> (raw)
In-Reply-To: <2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com>

On Thursday, June 23, 2016 at 2:36:21 AM UTC-6, Diogenes wrote:
> 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?
> 
> I'm asking because I've found a way to strip about 80k from a statically linked executable by not including Interfaces.C in the runtime.
> 
> I've gotten my code to work reasonably well (no segfaults or memory errors) using inline Assembler. But it seems like there should be an Abstract or Generic "syscall" feature as part of the System library that we could use for doing our own Kernel calls. Same thing for the vDSO.
> 
> Any tips?
> 
> Diogenes


I did something similar for a work thing a while back, I posted it to github https://github.com/abenedic/ada-raw-linux-syscalls . It still needs to be cleaned up though.


  parent reply	other threads:[~2018-07-11 22:38 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
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 [this message]
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