Re:



"compilation unit" is a C standard term. It typically boils down
to "single .c file".

As you mentioned later, "single .c file with all the other files (headers
or other .c files) that it pulls in via #include" is actually "translation
unit", both in the C standard as well as gcc docs.

Yeah. "single .c file after preprocessing". Same thing :-)

"Compilation unit"
doesn't seem to be nearly as standard a term, though in most places it
is indeed meant to be same as "translation unit", but with the new gcc
inter-module-analysis stuff that you referred to above, I suspect one may
reasonably want to call a "compilation unit" as all that the compiler sees
at a given instant.

That would be a bit confusing, would it not? They'd better find
some better name for that if they want to name it at all (remember,
none of these optimisations should have any effect on the semantics
of the program, you just get fewer .o files etc.).


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Conversion from UTF32 to UTF8 for review
    ... interpretation of what the standard might have meant. ... name in its original language. ... An English translation of the Bible is at best a secondary ...
    (microsoft.public.vc.mfc)
  • Re: What a translation unit is.
    ... >> vendor is going to try to follow the standard. ... That is an internal compiler TU. ... >There are also other types of translation units but they are not really ... things source code, internal form, and object code, since they are ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Simultaneous Writes on Volatile
    ... It's valid in that it compiles, ... The translation thus has defined behaviour. ... the Standard, then that's part of what I was asking about, for sure. ... I think that's what you're suggesting, ...
    (comp.lang.c)
  • Re: linking c++ code with c library
    ... All external object and function references are resolved. ... objects not defined in the current translation. ... I think he means that the C standard does not mention dynamic linking ...
    (comp.lang.c)
  • Re: What a translation unit is.
    ... Quite apart from the standard definitions given in ... Will you next claim that Borland and Comeau don't write ... > vendor is going to try to follow the standard. ... There are also other types of translation units but they are not really ...
    (alt.comp.lang.learn.c-cpp)