This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bluesky idea: __attribute__ (netorder)
- To: Stephen Williams <steve at icarus dot com>, Bill Currie <bcurrie at tssc dot co dot nz>
- Subject: Re: bluesky idea: __attribute__ (netorder)
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Mon, 7 Sep 1998 10:05:56 +0100
- Cc: egcs at cygnus dot com
- References: <35F3059A.66A1@tssc.co.nz> <199809062347.QAA06662@icarus.com>
On Sun, Sep 06, 1998 at 04:47:50PM -0700, Stephen Williams wrote:
> Embedded and operating system programmers can get loads of mileage out
> if this kind of thing. We deal with special kinds of data all the time.
> We don't necessarily need the compiler to treat the memory any differently,
> other then to notice and warn about property mismatches. The properties
> can be type checking is done.
Must of the things you describe (esp. physaddr vs. virtaddr) can be done
with struct wrappers. GCC will put small structures in registers so
efficiency is not a problem.
But you forgot mlocked memory, that's even trickier and more important
IMO :-)
-- Jamie