BCPL compiler with GCC

Joseph S. Myers jsm@polyomino.org.uk
Wed Oct 22 19:31:00 GMT 2003


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



More information about the Gcc mailing list