This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 debug] Do not emit debug sections until they are required.



On 2 Nov 2010, at 21:10, Tom Tromey wrote:


"IainS" == IainS <developer@sandoe-acoustics.co.uk> writes:

IainS> In order to do this, macinfo data are saved in a vec, and emitted from
IainS> dwarf2out_finish () rather than 'on the fly'.


Does this impact gcc's memory use?

the size of the macro strings + a small overhead per macro. (i.e. it should be dominated by the strings in most cases).

one would generally expect this to number in kb rather than Mb - although I'm sure we could come up with a scenario which would exceed this.

(And does it matter to anybody?)

... given the discussion on irc last night about >4Gb objects, it seems unlikely.


It's judgement on whether the improvement in determinism for the section order and readability of the asm are worth the increase in footprint.

cheers
Iain




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