From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id AFC6C3858C62 for ; Tue, 22 Nov 2022 04:25:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AFC6C3858C62 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1669091112; bh=nZicFI+K1x4LUqzblTBFiI9EJy29Z5HgOcZcFANr/vA=; h=Subject:From:To:Date:In-Reply-To:References:From; b=bNZZCqd4qw4aSnXEpPnoM7KHDFndFAVAJULLQDNlvUg7cJYV6soWEi/i6L+zlkxMx nQFfLgcE3jNX6D2S/ti2gUPRD+T9kWIAVPqbQ0soBV8jdXUV2UU96SDoP0mn3Jpvut Wj3VL4T0NF7y20u4m0ReHfUkvNHArDZt6bcI+GbM= Received: from [IPv6:240e:358:1199:2300:dc73:854d:832e:2] (unknown [IPv6:240e:358:1199:2300:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 5F06165AEB; Mon, 21 Nov 2022 23:25:09 -0500 (EST) Message-ID: Subject: Re: gcc linker compression From: Xi Ruoyao To: hongjie wu , gcc-help@gcc.gnu.org Date: Tue, 22 Nov 2022 12:25:02 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 2022-11-22 at 12:00 +0800, hongjie wu via Gcc-help wrote: > ArmClang and IAR support compression in the linker. Does gcc support > similar operations of compression? GCC does not contain a linker. > IAR Compression: > (1) packbits - Compresses with the PackBits algorithm. Thismethod generat= es > good results for data with many identicalconsecutive bytes. > (2) lz77 - Compresses with the Lempel-Ziv-77 algorithm.This method handle= s > a larger variety of inputs well, but hasa slightly larger decompressor. >=20 > ARMclang Compression: > https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_tools_user_gu= ide/compiler_manual/linker_description/08_using_linker_generated_copy_table= s/compression-stdz0754720.html --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University