forced page alignment of a struct

Programming, for all ages and all languages.
Post Reply
stonedzealot

forced page alignment of a struct

Post by stonedzealot »

I can't figure out how to force a struct to be page-aligned (aligned so the data begins on an address that is a multiple of 4 kilobytes)

I looked through the manual and it only mentioned __alignof__, which is not what I'm looking for...

This is, of course, without pointing the struct directly to a page-aligned address (that's what I'm trying to eliminate).
Post Reply