This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BCPL compiler with GCC
On Wed, 22 Oct 2003, Andrew Haley wrote:
> Addresses are always word addresses, aren't they? I suppose you'd end
> up with something like
>
> !B mapping onto *(word *)(b * sizeof word)
Remember that it might be more efficient, when implementing BCPL on
byte-addressed machines, to make adjustments for arithmetic rather than
for pointer dereferencing. See the discussion at the end of
<http://www.lysator.liu.se/c/clive-on-history.html>. You could always
provide options for both and experiment.
BCPL is a language largely defined by an implementation rather than a
standard, i.e. code uses features not mentioned in the book or the 1979
draft standard (I'm not aware of a final version).
--
Joseph S. Myers
jsm@polyomino.org.uk