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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2bbf3d5f0433bab7,start X-Google-Attributes: gid103376,public X-Google-Thread: 115aec,f41f1f25333fa601 X-Google-Attributes: gid115aec,public From: Ken Garlington Subject: Re: Ada and Automotive Industry Date: 1996/12/02 Message-ID: <32A2C2BF.7E1F@lmtas.lmco.com>#1/1 X-Deja-AN: 201913472 references: <1996Nov30.130532.522@decus.org.nz> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.realtime,comp.lang.ada x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-12-02T00:00:00+00:00 List-Id: granville@decus.org.nz wrote: > > We studied implementing Ada, for the C51 ( and still do so ), but have > decided not to proceed. It may be possible, but it is not practical, > nor efficent. > > We need a language that can run comfortably on the tiny FLASH C51's with > 1K of CODE and 64 bytes of RAM, as well as the more common 8-16K cores, > and even > 64K bankswitched cores. > > With the opening of Ada, and the talk of 'legal subsets', it would certainly > be possible to do a Modula-2 subset of Ada on the C51, but you would have > very poor portability as all vendors would do different 'subsets'. Actually, there are now mechanisms in place that could help with portability. Assuming someone wrote a specification of a language subset, and defined it in terms of pragma Restrictions, it might be possible to get a group like ACM SIGAda, the ARA, etc. to promote it as an informal standard, and possibly get it included as an annex in a future revision of the standard. This approach is being used right now to promote standard bindings for Ada. > Remember that Heap, Pointer, and dynamic memory work is not a C51 strongpoint. > Fast interrupts, and boolean control logic is. Fortunately, Ada 95 supports both fast interrupts (e.g., using procedures as interrupt handlers) and boolean control logic. It also provides generics and strong typing, which can be used with minimal overhead with most compilers. I've implemented Ada programs on several systems with no use of the heap, so it should be doable for a C51 (assuming the selection of an appropriate subset of the language). -- LMTAS - "Our Brand Means Quality" For more info, see http://www.lmtas.com or http://www.lmco.com