From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 6037E3972004 for ; Wed, 14 Apr 2021 05:44:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6037E3972004 Received: by mail-io1-xd2a.google.com with SMTP id s16so14241031iog.9 for ; Tue, 13 Apr 2021 22:44:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=4zprvUYfDtuMY+Q8RxfJ9jYXDf6RmxfMK8jT8HGsONE=; b=a+av5ZRv5kAXVmk07Ck6MYHEl9NYLXm9LD3lykXy+KL5usEGY711Wy3fUWEJdLzQFN vf9bjXfvANZ4vD5MCY9fS0+cAfsesxgWHWQHhf4ON1EKdOrmIVcF0HDxU4lisbOKGfEs jJBsKqazcgLeL2ERnLAkgLpTAXYfQ8k3A7Xr+HRV+MwZXUIaYTxM2BRAiEJ+2CUZx8Ss 6XmsSXBa2wZNkiGrzuxhSjSio2B1PkR7am06X0kyVVk/hk5bqJjoG6MG2IAohiZKejOX Ye+oTOB4HA+sVAzN0jBXll2oARfZGkq85ZHNeQjOU9caSgjH0j0/8vXFUMFM9ng9ZfyV KUMQ== X-Gm-Message-State: AOAM530PN05SseAaHayouLREvQcw1MrygVL4/e6EqnOUnFg6R4HCl6JL FqQTjGO7KF0LCmsHfVz+ZhXr9KKsdXmMPxp1emW4uou1hco= X-Google-Smtp-Source: ABdhPJy/OcW2viJFE4lk+xDwrO6NsXoNuRYEagPxDOenW6IhxRAK74wHdicRpR3EefqdZaK25yiujA99AVxUG2FjAR8= X-Received: by 2002:a02:a588:: with SMTP id b8mr37001275jam.20.1618379044477; Tue, 13 Apr 2021 22:44:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: pawel.kunio@gmail.com From: "pawel k." Date: Wed, 14 Apr 2021 07:43:51 +0200 Message-ID: Subject: Re: My 2nd attempt to devel for gcc To: Joseph Myers Cc: gcc@gcc.gnu.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2021 05:44:07 -0000 Hello, Sorry for slight delay. Very happy if i could prepare prototype of this solution. My best guess is if we could hookify all target code everything callable either from frontends or midend, we could try to severly cut this estimate. I also went back to thread you memtioned, i underestimated time for making gcc driver multitarget and likewise for collect binary. What also puzzles me is work on multilib, i still understand multilib clearly enough. In my previous rant i focused mostly on compiler main exec and making it multitarget. We should if this project makes any or some sense think of how configure flags influence codegen of target sources. Im not 100% sure here. If running such project, id focus first on hookifying and possibly wrapping in functions all target genned and callable code. Then id try to make gcc driver multitarget, then same for collect then same for multilib and in the end for gcc main frontend-specific exec ie interface between midend and target and switching configure to gen all code for all targets selected. If still interested and if i should go to clarifying and researching making driver collect multilib multitarget, please let me know. Also if what i say doesnt make much sense, please also let me know. Best regards, Pawel kunio pon., 29.03.2021, 19:25 u=C5=BCytkownik Joseph Myers napisa=C5=82: > On Sun, 28 Mar 2021, pawel k. via Gcc wrote: > > > Hello, > > I would like to ask whether there would be interest in the project to b= e > > able to build a single binary of gcc where target would be selectable > with > > option flags ie more than one target could be included and aimed for by > > single binary. > > > > If so i could try myself at adding such feature to gcc. It looks > ambitious > > but doable. > > I've estimated this as taking about two person-years of work (that is, tw= o > person-years of work for someone with extensive experience in GCC > development). > > https://gcc.gnu.org/legacy-ml/gcc-patches/2010-06/msg02675.html > > While there have, for example, been various conversions of target macros > to hooks, and other such similar changes, since then, I don't think > anything fundamentally changes the basic estimate. > > -- > Joseph S. Myers > joseph@codesourcery.com >