This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Beginner GCC projects question


Paolo Bonzini <paolo.bonzini@polimi.it> writes:

>> See, the solution to the crossbuild problem (and to the "non-GCC
>> bootstrap compiler" problem) is to build cpplib for the build machine,
>> and wrap a custom tool around it.  That part is easy.  But once
>> you've done that, why not make the custom tool a little cleverer so
>> that it can generate _all_ the dependencies?  I don't think it's
>> hard.
>
> You already have such a tool.  It's mostly cpp | awk.

We can't count on the bootstrap cpp doing anything useful in this
regard, remember.  The "custom tool" could just be a very simple
commandline wrapper around cpplib, but once I have to write *some*
code in C I would much rather do the entire job in C than deal with
awk.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]