Library / Technology

GNU C Compiler InternalsWikibooks contributors

GNU C Compiler Internals

by Wikibooks contributors

TechnologyEnglishTextbookFree to read · CC BY-SA 4.0

An open computer programming textbook written by volunteers on Wikibooks.

PriceFree
Pages52
Reads0
Words15,448

“GNU C Compiler Internals” by Wikibooks contributors (see the page history at en.wikibooks.org), licensed CC BY-SA 4.0. Images come from Wikimedia Commons under their own free licences. Converted to Nwoma's reader format.

Licence: CC BY-SA 4.0 · Source: Wikibooks
Contents (77)
IntroductionWhat is GCC?History of GCCPurpose of this bookGNU C Compiler Architecture. Compiling an ExpressionAn Overview of GCC Architecture. Compilation of an expression.Main RepresentationsAuxiliary Data StructuresAdditional RepresentationsGCC InitializationParser and PreprocessorParserPreprocessorFrom Source Code to ASTFrom AST to GIMPLEFrom GIMPLE to RTLFrom RTL to ObjectLowering PassesSwitch StatementCompilation of a functionFunction Prolog and EpilogLocal Control Flow AnalysisFunction callsGlobal Control-Flow AnalysisParameter PassingStackguardGEM FrameworkHooksTraversing an ASTInstrumenting an ASTLookup of a Declaration in the Symbol TableBuilding Tree NodesAdding Nodes to a TreeBuilding Function and Variable DeclarationsWhen to InstrumentFunction Prolog/EpilogC Function OverloadingFunction overloading in CReturn Address DefenseReturn Address DefenseAdding Syntactic SugartoString() method for each structure as in JavaInvoke a block of code from a function as in RubyDereference function results when a structure is returnedUse functions to initialize a variableDefault values of function arguments as in C++Reference parameters as in C++GCC switches in object fileType information at run-timeImproving Code StyleBreak up enormous source filesBreak up enormous functionsBreak up enormous conditionalsDelete garbageUse predicates for RTL objectsSecurity EnhancementsReturn address protection (RAD)Repair of control-hijacking attacks (DIRA)Array bounds checking using segmentation hardware (CASH)Detecting integer overflows (DIVINE)Dynamic Information Flow Tracking (GDIF)LinksContributorsGNU Free Documentation License0. PREAMBLE1. APPLICABILITY AND DEFINITIONS2. VERBATIM COPYING3. COPYING IN QUANTITY4. MODIFICATIONS5. COMBINING DOCUMENTS6. COLLECTIONS OF DOCUMENTS7. AGGREGATION WITH INDEPENDENT WORKS8. TRANSLATION9. TERMINATION10. FUTURE REVISIONS OF THIS LICENSE11. RELICENSINGHow to use this License for your documents

Reviews

Sign in to rate and review this book.

No reviews yet. Be the first to share what you think.

More by Wikibooks contributors