Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: struct heap 64-bit



In article <20000104122533.A9908@xxxxxxxx>,
  Clint Adams <schizo@xxxxxxxxxx> writes:

> Can you do that on a struct definition?

Yes.

% cat t.c
struct s {
  char c;
} __attribute__ ((aligned (8)));

int main()
{
  printf("%d\n", sizeof(struct s));
  return 0;
}

% gcc t.c
% ./a.out
8
% 
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author