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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,216b18d81cce4f75 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-10 01:36:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: gerhard.nospam@bigfoot.de (Gerhard =?iso-8859-1?Q?H=E4ring?=) Newsgroups: comp.lang.ada Subject: Re: Ada Microkernel? Date: Sun, 10 Jun 2001 09:13:25 +0200 Organization: T-Online Message-ID: References: <3B183CB8.3EE396E7@engineer.com> <_M3S6.8957$HL5.1284411@news6-win.server.ntlworld.com> <8DKS6.27593$%_1.4657414@news2-win.server.ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 992161904 05 31475 kFe-SzIXSpaFN0 010610 08:31:44 X-Complaints-To: abuse@t-online.com X-Sender: 320066699498-0001@t-dialin.net User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:8504 Date: 2001-06-10T09:13:25+02:00 List-Id: On Sun, 10 Jun 2001 02:16:34 +0100, Chris Campbell wrote: >[...] >> OOP code itself is not inherently slow, but rather it happens to be a >> result of the compiler or interpreter being used. > >That brings up an interenting point about Ada compilers and OO, specifically >GNAT which is what most use i think. I see very little in the Ada 95 language >design that would need tied to an OS, but how much is there in practise? There >is no point saying use OO in the kernel if the compiler uses some system >specifics to achieve it. The only solution would be to modify GNAT which would >be costly if it did need it. I ask since ppl have been pointing out the >_potential_ uses for OO in the OS in other and in this group(s), and i plan to >modify GNAT to support exceptions -- or more specifically the reporting of >exceptions -- without the need for system specifics. I might be willing to do >something similar for objects if it's possible and providing it would be of >benefit to ppl. I won't do it if it's like C++ RTTI and will need substantial >modifications to make it run. Hopefully considering Ada's embedded and systems >programming history this won't be an issue though. Last time I tried to do OS programming with GNAT, I couldn't create dynamic objects, because the GNAT runtime calls malloc, which doesn't exist in the Linux kernel. kmalloc does exist, of course. Have you already looked into the GNAT sources, how hard do you think it is to write a new runtime for kernel-level programming? Are there enough docs in the GNAT sources that describe how to write a new runtime? OK, I should of course check that myself ... IIRC ACT are selling a GNAT version that targets RTLinux (also kernel-level), so it must be possible. Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://highqualdev.com public key at homepage public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))