We seem to get a lot of threads asking about headers, definition and redefinition errors, including cpp files, etc... so it is time for diagrams (but first, some words)!A typical C/C++ compiler consists of several pieces: the preprocessor, the parser, the lexer, the linker, code generator, code optimization, etc... but for the purpose of simplicity I'm going to refer to the whole "package" as "the compiler" unless otherwise noted or if I'm making a specific reference to a certain piece. In a nutshell this is what the compiler does:
0 comments:
Post a Comment