From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80717 invoked by alias); 18 Oct 2019 11:59:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 80702 invoked by uid 89); 18 Oct 2019 11:59:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 11:58:59 +0000 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 44B26335E8 for ; Fri, 18 Oct 2019 11:58:58 +0000 (UTC) Received: by mail-wm1-f71.google.com with SMTP id f186so473141wmf.6 for ; Fri, 18 Oct 2019 04:58:58 -0700 (PDT) Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id z15sm5738647wrr.19.2019.10.18.04.58.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2019 04:58:56 -0700 (PDT) Subject: Re: Type representation in CTF and DWARF To: Nick Alcock , Indu Bhagat References: <6ade3f1a-08a5-f8df-c53a-c98d60b0f12a@oracle.com> <088f530c-959b-ce76-5b87-8889e82f62df@oracle.com> <20191009074933.GA15914@tucnak> <34013601-e93d-c236-5cee-0f39f3026e1e@oracle.com> <87r23b8eav.fsf@esperi.org.uk> Cc: Jakub Jelinek , Richard Biener , gcc-patches , mark@klomp.org From: Pedro Alves Message-ID: <0e37dc25-432c-6090-06a0-55501402477f@redhat.com> Date: Fri, 18 Oct 2019 11:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87r23b8eav.fsf@esperi.org.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-10/txt/msg01352.txt.bz2 On 10/17/19 6:36 PM, Nick Alcock wrote: > A side note here: the sizes given above are uncompressed sizes, but in > the real world CTF is almost always compressed: the threshold for > compression is in theory customizable but at the moment is hardwired at > 4KiB-uncompressed in the linker. I usually see compression ratios of > roughly 3 or 4 to 1: e.g. I just tried it with a randomly chosen binary, > /usr/lib/libgtk-3.so.0.2404.3, and got these sizes: DWARF can be compressed too, with --compress-debug-sections. Thanks, Pedro Alves