bluesky idea: __attribute__ (netorder)

Jamie Lokier egcs@tantalophile.demon.co.uk
Mon Sep 7 04:07:00 GMT 1998


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



More information about the Gcc mailing list