pahole - Finding holes in kernel structs
Julian Stacey
jhs at berklix.org
Thu Feb 12 09:06:54 PST 2009
Hi,
Reference:
> From: Jille Timmermans <jille at quis.cx>
> Date: Thu, 12 Feb 2009 17:34:23 +0100
> Message-id: <49944F8F.5080104 at quis.cx>
Jille Timmermans wrote:
> Julian Stacey schreef:
> >> 1) Is it worth my time trying to rearrange structs?
> >
> > I wondered whether as a sensitivity test, some version of gcc (or
> > its competitor ?) might have capability to automatically re-order
> > variables ? but found nothing in man gcc "Optimization Options".
> There is a __packed attribute, I don't know what it exactly does and
> whether it is an improvement.
Ah: gcc -fpack-struct
Cheers,
Julian
--
Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com
Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org
More information about the freebsd-hackers
mailing list