comp.lang.ada
 help / color / mirror / Atom feed
From: "fabio de francesco" <fmdf@tiscali.it>
Subject: Re: "new" word
Date: 16 Mar 2005 05:01:29 -0800
Date: 2005-03-16T05:01:29-08:00	[thread overview]
Message-ID: <1110978089.521428.75690@l41g2000cwc.googlegroups.com> (raw)
In-Reply-To: <slrnd3g58c.r83.adi@ppc201.mipool.uni-jena.de>


Adrian Knoth wrote:
> Vinzent 'Gadget' Hoefler <nntp-2005-03@t-domaingrabbing.de> wrote:
>
> [new via malloc of libc]
> > so why should one write an Ada specific memory allocator that
>
> To get rid of libc, C and all this? ;) A native kernel interface
> would be nice to eliminate possible implementation errors in libc.
>
> On the other hand as far as I can see there is no binary
representation
> of the linux-kernel, in other words, you'll need to dynamically
> adapt the Ada memory layout to the corresponding kernel (+compiler).

No, it isn't required. You don't need a Kernel-ABI in order to access
system calls in kernel space, as I wrote in another post in this
thread. There is a standardised way to access syscalls through
interrupt H80.

Imagine you write a new syscall in Linux kernel and you want to use it
before it is binded into the LibC, you can do it with some simple
Assembly inline C/C++/Ada and whatever else programming language.

Same way you can access sys_sbrk() that is the standard syscall that
provide memory in user space.

fabio de francesco


>
> Another way would be to specify the Kernel-ABI, but I don't expect
> this to happen earlier than Hurd ;)
>
> AdaOS would probably come along with a well-defined ABI and no
> libc, but libada.
>
>
> --
> mail: adi@thur.de  	http://adi.thur.de	PGP: v2-key via keyserver
> 
> Mit leerem Kopf nickt es sich leichter.




  parent reply	other threads:[~2005-03-16 13:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16  9:56 "new" word fabio de francesco
2005-03-16 10:30 ` Vinzent 'Gadget' Hoefler
2005-03-16 11:14   ` Adrian Knoth
2005-03-16 11:42     ` Vinzent 'Gadget' Hoefler
2005-03-16 12:09     ` Thomas Lotze
2005-03-16 13:17       ` fabio de francesco
2005-03-16 13:25         ` Vinzent 'Gadget' Hoefler
2005-03-16 13:40           ` fabio de francesco
2005-03-16 14:34             ` Vinzent 'Gadget' Hoefler
2005-03-16 13:01     ` fabio de francesco [this message]
2005-03-17 15:09       ` Lutz Donnerhacke
2005-03-16 13:49     ` Larry Kilgallen
2005-03-16 13:55     ` Florian Weimer
2005-03-17 14:38       ` Lutz Donnerhacke
2005-03-16 16:23     ` Robert A Duff
2005-03-16 11:07 ` Adrien Plisson
2005-03-16 11:36 ` Larry Kilgallen
2005-03-16 12:53   ` fabio de francesco
2005-03-16 13:10     ` Vinzent 'Gadget' Hoefler
2005-03-16 16:20 ` Robert A Duff
2005-03-18  4:10   ` Wes Groleau
2005-03-18 12:04     ` Larry Kilgallen
2005-03-18 14:05       ` Martin Krischik
2005-03-16 22:12 ` Randy Brukardt
2005-03-18  4:03 ` Wes Groleau
replies disabled

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