proposal for compilation unil wide alias analyis

Paul Brook paul@codesourcery.com
Mon Jun 28 13:53:00 GMT 2004


On Monday 28 June 2004 13:43, Kenneth Zadeck wrote:
> It depends on what you mean as IPA.  For C and I assume Fortran, most
> compilation is single file at a time (except when one is compiling for
> benchmarks).  What I noticed was that even at the file at a time mode,
> in C,  there was a significant amount of information that was being
> thrown away.
>
> I would assume that what you are doing is only going to get results for
> compiling whole programs.
> I could be wrong here, but the last time I looked at fortran, it had
> fewer functions per file than C.

Fortran doesn't have file-level scope. Each program unit[1] is entirely 
self-contained. If you do have many separate files, You can use "cat" to 
merge them together, then compile the result.

Paul

[1] A program unit is a function/subroutine/module/program block. Contained 
procedures may be nested within these toplevel blocks.



More information about the Gcc mailing list