From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by sourceware.org (Postfix) with ESMTPS id 981EC3858D1E for ; Tue, 14 Feb 2023 12:57:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 981EC3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=tutanota.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tutanota.com Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 972B31060147; Tue, 14 Feb 2023 12:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1676379427; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=wUAGM78iZjU8uLjXgXtQKm0wQw+/W4K4O5P1W6eNU/E=; b=l1SG/oanUSo820Jf87UG24E6EAO2VxFb3+2A13ASTAm9+ZTDRxUcOdv3zybOEkmk lK/1y/9dblx0H8uddkJblmtsni47C0/8AnF6iwmgPjAEI4gu234M96UVYDAutZbWKBT sT9gs+66ZAGVLG+7uo5NWjxVRhFCya5bdJGFQkhAw3jJXG/+EiDarNj87KFvjcmVLMG wbXyD3mZ/jGYVbg7Ym3qB0v8/VFsjxUtO/YhRUdFl2xCKPNVmiJugoglrg8nIkFKGXZ APYaTiEv5vuhUEpe13Y+cdznKV+jFzcO5sBjmhgrPDdS9QiHvUfvrbmZUF06X0yf1bp tqL/mlNrkQ== Date: Tue, 14 Feb 2023 13:57:07 +0100 (CET) From: Sagar Acharya To: Xi Ruoyao Cc: gcc-help@gcc.gnu.org Message-ID: In-Reply-To: <4db1fdb33d0f4006e0b083b4429949337a740c01.camel@xry111.site> References: <8db704d6dae26764592f794835e07fc4100ed506.camel@xry111.site> <4db1fdb33d0f4006e0b083b4429949337a740c01.camel@xry111.site> Subject: Re: Cross Compiling for riscv64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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: Point of a compiler is to convert C code to machine code of hex/binary/object file in least amount of time and conserving as much memory as can be done. To create good error-free sequence of instructions is also one objective. The values of memory required are definitely not of order 1GB. There are OSes which can be booted in less than 100MB. Thanking you Sagar Acharya https://designman.org 14 Feb 2023, 18:13 by xry111@xry111.site: > On Tue, 2023-02-14 at 13:28 +0100, Sagar Acharya wrote: > >> The real question is, whether building a compiler should require 900MB >> memory? >> >> And my answer to it is a clear undisputed no. 900MB is more than >> enough memory for building a compiler. >> > > GCC is a real compiler, not an example in the compiler textbook. > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >