Related articles |
---|
[13 earlier articles] |
Re: Multiple return values hrubin@stat.purdue.edu (1997-04-20) |
Re: Multiple return values fjh@mundook.cs.mu.OZ.AU (1997-04-22) |
Re: Multiple return values roy@earthlight.co.nz (1997-04-22) |
Re: Multiple return values Robert.Harley@inria.fr (1997-04-22) |
Re: Multiple return values jashley@eecs.ukans.edu (Mike Ashley) (1997-04-22) |
Re: Multiple return values burley@tweedledumb.cygnus.com (Craig Burley) (1997-04-22) |
Re: Multiple return values albaugh@agames.com (1997-04-22) |
Re: Multiple return values tiggr@es.ele.tue.nl (1997-04-30) |
Re: Multiple return values jch@hazel.pwd.hp.com (John Haxby) (1997-05-04) |
Re: Multiple return values jan@digicomp.com (Jan Galkowski) (1997-05-04) |
Re: Multiple return values gscase@interact.net.au (1997-05-04) |
Re: Multiple return values Robert.Harley@inria.fr (1997-05-04) |
Re: Multiple return values tim@franck.Princeton.EDU (1997-05-04) |
[10 later articles] |
From: | albaugh@agames.com (Mike Albaugh) |
Newsgroups: | comp.compilers,comp.lang.misc |
Followup-To: | comp.compilers,comp.lang.misc |
Date: | 22 Apr 1997 23:18:16 -0400 |
Organization: | Atari Games Corporation |
References: | 97-04-091 97-04-109 97-04-138 97-04-148 |
Keywords: | optimize, design |
Robert Harley (Robert.Harley@inria.fr) wrote:
: hrubin@stat.purdue.edu (Herman Rubin) writes:
: >[...]
: >This would be the unpacking operation. [...]
: Difficult? Not available? What about something like:
: unsigned u;
: int exp, mant;
: union { unsigned u; float f; } uf;
: uf.f = f; u = uf.u;
/* Sails off into undefined behavior ... :-) */
: GCC will optimise this just fine.
GCC will also allow arithmetic on void pointers,
character strings that run past newlines, and a fair bit
of other nonsense, if you don't give it the "-pedantic"
flag, which illustrates how its authors feel about
standards and portability.
What "[insert name of favorite compiler] will ..."
has to do with the definition of the language is another
kettle of calamari, no?
Mike
| albaugh@agames.com, speaking only for myself.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.