comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software)
Subject: Re: Ada for C30
Date: 26 Feb 95 08:38:12 -0500
Date: 1995-02-26T08:38:12-05:00	[thread overview]
Message-ID: <1995Feb26.083812.9229@eisner> (raw)
In-Reply-To: 3io711$hs5@bighorn.accessnv.com

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 :-)



  parent reply	other threads:[~1995-02-26 13:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-23 20:10 Ada for C30 John L. Kollig
1995-02-24 13:33 ` Gentle
1995-02-24 17:46   ` Garlington KE
1995-02-25 21:17   ` jfj
1995-02-25 23:04     ` Michael Hirasuna
1995-02-26 13:38     ` Larry Kilgallen, LJK Software [this message]
1995-02-28  4:19       ` jfj
1995-02-28  0:02 ` Bill Priest
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox