This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bluesky idea: __attribute__ (netorder)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]