This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Add is_executable to Dwfl_Module.


>    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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]