From: Daniel Jacobowitz <drow@false.org>
To: Doug Evans <dje@google.com>
Cc: gdb@sourceware.org
Subject: Re: 29 bits for dwarf2_per_cu_data.length ?
Date: Mon, 29 Sep 2008 13:39:00 -0000 [thread overview]
Message-ID: <20080929133835.GA9818@caradoc.them.org> (raw)
In-Reply-To: <20080928204518.2FD9E1C78DF@localhost>
On Sun, Sep 28, 2008 at 01:45:18PM -0700, Doug Evans wrote:
> That shrinks the maximum size of a CU from 1G to 512M.
> I'm guessing it's a non-starter (although 512M for one CU is still a lot),
> but before I try something else I thought I'd check.
I think 29 bits is still fine. A 512MB CU is going to produce
probably upwards of 2GB in internalized debugging information. The
first time someone comes up to us with a file that big, we'll want to
accomodate it; but for now, I'd be surprised to see it. 512MB
.debug_info, sure - that is easily within the reach of modern
applications.
> OTOH, on 64 bit targets there is 32 bits of alignment padding
> in dwarf2_per_cu_data. DIE's are a lot smaller these days, and there
> are a whole lot more of them than CUs.
> Can I spend a teensy bit of that gain and make dwarf2_per_cu_data 32 bits
> bigger for 32-bit targets?
That'd be fine with me too.
> A related question: dwarf2_per_cu_data.offset is 64 bits on 64-bit
> targets (unsigned long) and yet most other places only use 32 bits
> (unsigned int). E.g., partial_die_info.offset.
> Can I change everything to use an unsigned it?
Yes - though maybe a typedef? dwarf_off_t?
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-09-29 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-28 20:46 Doug Evans
2008-09-29 13:39 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080929133835.GA9818@caradoc.them.org \
--to=drow@false.org \
--cc=dje@google.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox