This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bounds checking
- To: gkm at eng dot ascend dot com (Greg McGary)
- Subject: Re: bounds checking
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sat, 16 May 98 18:27:22 PDT
- Cc: law at cygnus dot com, Haj dot Ten dot Brugge at net dot HCC dot nl, gkm at eng dot ascend dot com, wilson at cygnus dot com, egcs at cygnus dot com, d dot love at dl dot ac dot uk, drepper at cygnus dot com, bothner at cygnus dot com
> 1) GCC likes pointers to fit into registers:
> Multi-word BPs are handled in a way analogous to complex numbers.
> The three words of a BP can be assigned to registers independently.
I'm not crazy about the idea of adding one magic type at a time that is
handled like complex numbers. It would be preferable to just handle all
structs like complex numbers (C++ performance would then immediately
greatly improve). If this is done, multi-field bounded pointers are
just a special case. This is a big change, but is it really harder than
doing all the equivalent work, but only using it for certain special
types (complex and BP's)?