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,ae89bc624e48de0c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-26 05:38:12 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.mathworks.com!news.alpha.net!uwm.edu!lll-winken.llnl.gov!noc.near.net!eisner!kilgallen From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software) Newsgroups: comp.lang.ada Subject: Re: Ada for C30 Message-ID: <1995Feb26.083812.9229@eisner> Date: 26 Feb 95 08:38:12 -0500 References: <19950223161056.jlkollig@space.honeywell.com> <3ikn7k$3qp@cnj.digex.net> <3io711$hs5@bighorn.accessnv.com> Distribution: world Organization: DECUServe Date: 1995-02-26T08:38:12-05:00 List-Id: In article <3io711$hs5@bighorn.accessnv.com>, jfj (John Fountain, Jr.) writes: > gentle@cnj.digex.net (Gentle) wrote> > writing phase at all. This should prove to be interesting. > Overall, my intuition tells me if I could do it in C I can > do it in Tartan Ada with a little careful construction. > Probably the biggest hurdle is that C's memory allocation > are very easy to predict, while in Ada we are not always > sure of what the compiler will construct and where things > will be allocated from. There have always been problems with people writing a Fortran program in some other language, such that no matter what language they use it comes out looking like Fortran. If you need to know how C or Ada is going to allocate the memory, and depend on undocumented (and therefore non-guaranteed) compiler behavior, you may be in for a rude awakening with the next version of any language compiler from any vendor. If you require a particular memory layout, you should depend on documented features of the language. In Ada the Representation Clauses are the major mechanism for accomplishing this. In some cases Address Clauses may also be relevant. Whatever your language, you should rely on documented (and therefore guaranteed) compiler features to produce particular memory usage. Larry Kilgallen whose representation clauses "just worked" when DEC released Alpha AXP :-)