Getting rid of -fno-unit-at-a-time [Was Re: RFC: Preserving order of functions and top-level asms via cgraph]

Nathan Sidwell nathan@codesourcery.com
Mon Apr 11 12:09:00 GMT 2005


Andrew Haley wrote:
> Nathan Sidwell writes:

>  > 1) The C++ programs are smaller than the java programs
> 
> That's my guess.  Usually, C++ users compile one source file at a
> time, whereas Java users find it convenient to compile a whole
> archive.
ok, thanks.  This sounds like you're really in an IMA mode :) If I
understand java archives correctly, they're really a set of concatenated
TUs, so could be compiled individually and then having a final link.
That would more naturally match other language's uses of the toolchain.

you'd like the backend to handle the breaking appart bit (by preserving
no-unit-at-a-time).  I think that's merely pushing the complexity out
of the java FE and into the backend.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc mailing list