This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: strict-aliasing and typedefs
- From: Joe Buck <jbuck at synopsys dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: gdr at integrable-solutions dot net, gcc at gcc dot gnu dot org, lucier at math dot purdue dot edu
- Date: Wed, 14 May 2003 16:14:47 -0700
- Subject: Re: strict-aliasing and typedefs
- References: <20030514231002.AC362F2A60@nile.gnat.com>
On Wed, May 14, 2003 at 07:10:02PM -0400, Robert Dewar wrote:
> > Would that loss of performance be related to ABI issues (in single
> > element case)?
>
> Right, for instance on SPARC, you have to pass even a one elemnt struct
> by pointer (at least that's my understanding!)
While such costs are real, they are in many cases dwarfed by GCC's
inefficiency at handling internal structs (those within one function,
or passed only to inlined functions).