From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 1AD863858D1E for ; Tue, 14 Feb 2023 13:28:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1AD863858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52d.google.com with SMTP id eq11so17332203edb.6 for ; Tue, 14 Feb 2023 05:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YnZygYj745RDDmCwH+KqIS1nX7iikaky21OXYBYwQ4E=; b=ZTZ3U2Gurmk0gxLEa31NIv+piHsSLYLGLbu3xL3ZOhqJBK6Irg12tb1TQs7ygHv/8a uEPn12DGoJrXKKC0GxhEl5/tkebccMwWSA/X7Q/mkCVA6e2855K8+icQaz6wrvChM003 sJv51VoF6+7uP864EGYTlTfDY7JLqMirq2IasMrnD3dWPu0wExnTjwlhWrr4Ht7s3rYj 92tLedGUQV1tEoRU2ANmce6/9Mg922v+urXhbYs+4mHyYFRWe8oMdYpd1Hom3Sfu5pkC /XgFrLwqJkOKzsYpiBOSkLdjYI0oQ1uqkRniwYE72zhvRwKgEmVoIi2n3HZ5SyYO/qZ0 RFiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YnZygYj745RDDmCwH+KqIS1nX7iikaky21OXYBYwQ4E=; b=Lhri7A2zeWkXDrGBQfpjg87GqjZoR4kBdigom3wXQlNwHtofq7MNKfy/hj/qe5nw7A Be/yLk8YUpGfQM6+27DGRLkYN/u4Oj2b3PXFP8bRNUE5uraakE0Fz+xPSiHx9ghrW4pc D3Q9whlFz/g9zJgcr8E6vz4pHx0QIRhFkQFcOoImBkiwaOOLY5W9BS0S9Utw3zINVbld Kbgg7H22jduIJ3jSJ+b+q5FJcuZMZKujYeaKYv/UeRL3UVsaeZ2nHEtvnUFhQ6qdvBXk 3u4uJKjCqLSnw/1QDZmP6BcZHXG3iU7szOl7dRBVb6pRZEUVd9GwO8gyxxtZUiFVxPRs aplw== X-Gm-Message-State: AO0yUKXAeRNKuV/dDuOH9s4ui/u+mzr1aaVKXdmEtFguE/mcrVuiZXZ7 vNOJqV8zzgr9EBNDexUgTIDIAJFD/bdWUEhobPo= X-Google-Smtp-Source: AK7set/oGFIoRBgJsWscINpZC/fNHPUrXng90SD4bP6kX48u5Jgj6FQBGBsJ4BKDyxFe0WIg2kR71zLmU2qOsVnUuck= X-Received: by 2002:a50:aad4:0:b0:4ab:4d34:9762 with SMTP id r20-20020a50aad4000000b004ab4d349762mr1174836edc.5.1676381283878; Tue, 14 Feb 2023 05:28:03 -0800 (PST) MIME-Version: 1.0 References: <8db704d6dae26764592f794835e07fc4100ed506.camel@xry111.site> <4db1fdb33d0f4006e0b083b4429949337a740c01.camel@xry111.site> In-Reply-To: From: Jonathan Wakely Date: Tue, 14 Feb 2023 13:27:52 +0000 Message-ID: Subject: Re: Cross Compiling for riscv64 To: Sagar Acharya Cc: Xi Ruoyao , gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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, 14 Feb 2023 at 12:58, Sagar Acharya via Gcc-help wrote: > > Point of a compiler is to convert C code to machine code of hex/binary/object file Correct so far. > in least amount of time and conserving as much memory as can be done. No, that is a nice-to-have feature, not "the point of a compiler". > To create good error-free sequence of instructions is also one objective. Yes. > The values of memory required are definitely not of order 1GB. There are OSes which can be booted in less than 100MB. Have you actually looked at what is being compiled for gimple-match.o? It's meaningless to compare it to booting an OS, those are two completely different things. You could try compiling that file without optimization, or you could try building the compiler on a machine with more memory then copying it to your rpi.