From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3121004950297171844==" MIME-Version: 1.0 From: Roland McGrath To: elfutils-devel@lists.fedorahosted.org Subject: Re: [PATCH 1/2] Add is_executable to Dwfl_Module. Date: Tue, 09 Sep 2014 14:55:34 -0700 Message-ID: <20140909215534.88CD12C39D8@topped-with-meat.com> In-Reply-To: 20140909215150.GA16300@host2.jankratochvil.net --===============3121004950297171844== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > int segment; /* Index of first segment table entry. */ > bool gc; /* Mark/sweep flag. */ > + bool is_executable : 1; /* Use Dwfl::executable_for_core? */ If you're going to use a bitfield, then make every other bool in that struct a bitfield too. But it's not usually worthwhile. It's premature microoptimization that privileges memory over CPU, which might not even be the right tradeoff any more. --===============3121004950297171844==--