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

James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de>
12 Mar 1996 21:49:23 -0500

          From comp.compilers

Related articles
[18 earlier articles]
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: James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de>
Newsgroups: comp.compilers
Date: 12 Mar 1996 21:49:23 -0500
Organization: Compilers Central
References: 96-02-187 96-03-050 96-03-080
Keywords: syntax, design

jan@neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) writes:
|> 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.


There is currently a proposal before the C standardization committee
to do something like this. It actually goes considerably farther: for
example, most of the time, you need a minimum of n bits, but sometimes
you need exactly n bits (in which case, the compiler must typically
generate masking operations). And when you only need the minimum, you
may want the actual type optimized for either speed or space.


The result is a considerable number of integral types. The
implementation defines which ones map to short, int and long, but you
always have the possibility of specifying all of the gory details.


I'm not familiar with all of the details, but if you drop by and ask a
question in comp.std.c, the proponants of the proposal will give you
all the information you want.


--
James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
--


Post a followup to this message

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