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-Thread: 103376,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: How come Ada isn't more popular? References: <1169531612.200010.153120@38g2000cwa.googlegroups.com> <20070123211651.c0d43695.tero.koskinen@iki.fi> <87zm89tpk7.fsf@ludovic-brenta.org> <4q4pqgmdwo.fsf@hod.lan.m-e-leypold.de> From: Markus E Leypold Organization: N/A Date: Sat, 27 Jan 2007 20:58:15 +0100 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:c5vCuBi/uVAcJei8K0P5qeu9tmk= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.252.37 X-Trace: news.arcor-ip.de 1169927611 88.72.252.37 (27 Jan 2007 20:53:31 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:8630 Date: 2007-01-27T20:58:15+01:00 List-Id: Stephen Leake writes: > Markus E Leypold writes: > >> But you can writ Code in C which just does something with >> things on the stack, doesn't fiddle with threads or signals and thus >> interacts minimally with the host runtime. That's the reason why C is >> so popular for libraries: You can. > > You can do that in Ada as well. It is perhaps not as easy in Ada as in > C, because you must be more aware of what language constructs > require run-time support. :-) good to know. > > For example, fixed-point types require run-time support. If you use > fixed-point types in C, it is obvious from the source code that the > run-time must include a fixed-point library, because all fixed-point > operations are function calls. In Ada, that's not so clear from the > source, because fixed-point operations are just operators. > > GNAT provides 'pragma No_Run_Time' for this; it makes source code that Yes. I've been researching this some time ago and had the impression that this is what No_Run_Time does, but for some reason I was not completely convinced (the docs on that where very sparse) and since I didn't need it at that time I just didn't look at it further. Of course one would wish (sometimes) not to have tasking and perhaps not even exceptions (I think that requires run time support also, doesn't it), but have float point. > requires run-time support illegal. I've written code with this pragma > turned on (for export to a spacecraft executive that was mostly > written in C), and it does make Ada feel more like C. Still far > preferable to actually using C, though! I completely agree with this, especially if the compiler works (which is another can of worms). > In GNAT GPL-2006, 'pragma No_Run_Time' is listed as 'obsolescent'; you > are supposed to use a "configurable run-time" instead. I'm not sure how > that impacts this issue. Perhaps even better: Might that provide for the option to select exception support w/o getting tasking etc.? Regards -- Markus