Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C)

jan@neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen)
11 Mar 1996 17:46:37 -0500

          From comp.compilers

Related articles
[17 earlier articles]
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) dave@occl-cam.demon.co.uk (Dave Lloyd) (1996-03-01)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) henry@zoo.toronto.edu (Henry Spencer) (1996-03-01)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) WStreett@shell.monmouth.com (1996-03-03)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) jens.hansson@mailbox.swipnet.se (1996-03-06)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) jens.hansson@mailbox.swipnet.se (1996-03-08)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) rfg@monkeys.com (1996-03-10)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) jan@neuroinformatik.ruhr-uni-bochum.de (1996-03-11)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) (1996-03-12)
Re: Languages: The Bigger the Uglier (was: Re: Aliasing in ISO C) platon!adrian@uunet.uu.net (1996-03-25)
| List of all articles for this month |
From: jan@neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen)
Newsgroups: comp.compilers
Date: 11 Mar 1996 17:46:37 -0500
Organization: Institut fuer Neuroinformatik, Ruhr-Universitaet Bochum, Germany
References: 96-02-187 96-02-234 96-02-308 96-03-050
Keywords: standards

The moderator writes:


      [The usual justification for allowing different integer sizes and other
      such variations from one platform to another is that if you tie down too
      many details, you make it impractical for the language to run reasonable on
      machines with different word sizes. Now that everyone seems to have
      forgotten that there were ever machines with word sizes not powers of two,
      perhaps this argument is worth revisiting. -John]


I liked the version occam uses: If you don't care (e.g., for loop
counters and array indices), you specify INT which uses the native
integers, i.e., 16 bits on the 16 bit transputers and 32 bits on the
32 bit transputers. If you want a certain precision regardless of the
hardware you're running on, you specify INT16 or INT32 or..., as the
case may be. For sizes larger than the native size, the compiler will
automatically use the with-carry operations appropriately.


Jan
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.