Date: Thu, 12 Feb 2009 18:07:05 +0100 From: "Julian Stacey" <jhs@berklix.org> To: Jille Timmermans <jille@quis.cx> Cc: freebsd-hackers@freebsd.org, Andrew Brampton <brampton+freebsd-hackers@gmail.com> Subject: Re: pahole - Finding holes in kernel structs Message-ID: <200902121707.n1CH75XW003391@fire.js.berklix.net> In-Reply-To: Your message "Thu, 12 Feb 2009 17:34:23 %2B0100." <49944F8F.5080104@quis.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Reference: > From: Jille Timmermans <jille@quis.cx> > Date: Thu, 12 Feb 2009 17:34:23 +0100 > Message-id: <49944F8F.5080104@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902121707.n1CH75XW003391>