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,5212284fdbcb2b5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-05 15:26:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: New to ada, a few questions Date: 5 Aug 2002 17:25:54 -0600 Organization: LJK Software Message-ID: <4$Yu3TAw$M3B@eisner.encompasserve.org> References: <3D4EE233.7030101@worldnet.att.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1028585647 27220 192.135.80.34 (5 Aug 2002 22:14:07 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 5 Aug 2002 22:14:07 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:27728 Date: 2002-08-05T17:25:54-06:00 List-Id: In article , "akhar" writes: >> * Ada provides calling conventions and several useful conversions >> for calling functions compiled in C. You cannot use stdio.h in Ada. >> Ada does not understand C source syntax, and Ada has no standard >> preprocessor. > this means I have to link to a DLL ? No, but you have to compile each module with its own compiler (C or Ada) and then link them together. If you have reason to prefer to use some mechanism like a DLL/Shared Object/Shareable image you can do that too. Ada compilers are just like any other compiler in most cases for the top-down view -- they take in text files and put out object files. >> * Interfacing with C++ or objective C is possible. The simplest way >> is to treat them both as C programs. More complex approaches are >> somewhat compiler specific. > same thing here? Same thing as what ? >> * Ada is available for embedded systems, but not for 8 bit > microcontrollers. > where ca I get more info on this? Try http://www.adapower.com >> * Ada "threading" works very well. It is actually defined in the more >> general terms of concurrent programming, and is often implemented >> using threads. Compared to Java, Ada's concurrency model is extremely >> robust and sophisticated. > Tell me more about concurrent programming, how does it interface to the OS > threading model. I read this is the main reason it is used for realtime > applications , but cannot find any tutorials. If your OS has a threading model, it interfaces to it in any fashion that can achieve the specified behavior from the Ada Reference Manual, but typically it is better to learn this from a textbook. There are Ada compilers that depend entirely on OS services for their tasking, and there are Ada compilers that are entirely independent of OS tasking services. The emphasis in Ada is that your source code is portable between various operating systems and various compilers on those operating systems because your tasking/threading/multiprogramming support is a guarantee from the Ada implementation without you having to be concerned with how to deal with the operating system.