[Aldor-l] alignof
Gabriel Dos Reis
gdr at integrable-solutions.net
Fri Mar 21 19:09:20 EDT 2008
On Fri, Mar 21, 2008 at 4:56 PM, Bill Page <bill.page at newsynthesis.org> wrote:
> On 3/21/08, Pippijn van Steenhoven wrote:
> >
> > I keep wondering what to do with this:
> >
> > # define alignof(T) (sizeof(struct {char a; T b;}) - sizeof(T))
I suspect that on most platformd of interest to Aldor, GCC is
running, therefore GCC's documented extension __alignof__
is a better option.
FWIW, the next version of C++ will have a similar standard
facility (inspired largely from existing experience with major
C and C++ compilers).
More information about the Aldor-l
mailing list