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 be > 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, two 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 jos...@codesourcery.com