Re: please explain clearly what actually happens after i click on COMPILE
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 13:29:51 +0000 (UTC)
srikanth said:
what are the processes that happen after compile starts
The compilation process involves seven distinct translation phases (there is
an eighth, but that's to do with linking, not compilation). The
implementation is free to merge separate phases as long as this doesn't
change the behaviour of the resulting code.
The phases are:
1) Translation from physical environment to source environment, if
necessary, and trigraph replacement.
2) Line splicing.
3) Decomposition into preprocessing tokens, and comment removal.
4) Preprocessing (#include, #define, and all that).
5) Conversion of character constants and string literals from the source
character set into the execution character set.
6) Concatenation of string literals.
7) Compilation (or interpretation).
-----------------------------why is it i find 150 or 100 lines compiled
in the message box though it is a 10 or 09 lines program
It is probably because your implementation is reporting on the total number
of lines, including those resulting from a #include (possibly a standard
header).
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- Prev by Date: Re: please explain clearly what actually happens after i click on COMPILE
- Next by Date: Re: Hellp with type promotion
- Previous by thread: Re: please explain clearly what actually happens after i click on COMPILE
- Index(es):