- Home
- Inter Modules
- final
Final code generation from fully-processed Inter. This is version 1.
-
-
What This Module Does - An overview of the final module's role and abilities.
-
-
-
Final Module - Setting up the use of this module.
-
-
-
Code Generation - To generate final code from intermediate code. -
Code Generators - To create the range of possible targets into which Inter can be converted. -
Vanilla - The plain-vanilla code generation strategy, provided for the use of generators to imperative languages such as Inform 6 or C. -
Vanilla Constants - How the vanilla code generation strategy handles constants, including literal texts, lists, and arrays. -
Vanilla Functions - How the vanilla code generation strategy declares functions. -
Vanilla Objects - How the vanilla code generation strategy handles instances, kinds, and properties. -
Vanilla Code - How the vanilla code generation strategy handles the actual code inside functions. -
Vanilla IF - Constructing the dictionary, command verb and action tables when the target language is not Inform 6 (where such things are made automatically).
-
-
Chapter 3: Non-Vanilla Generators
-
Final Textual Inter - To create the range of possible targets into which Inter can be converted. -
Final Binary Inter - To create the range of possible targets into which Inter can be converted. -
Final Inventory - To print a summary of the contents of a repository.
-
-
-
Generating Inform 6 - To generate I6 code from intermediate code. -
Inform 6 Constants - To declare I6 constants and arrays. -
Inform 6 Global Variables - To declare global variables, using a mixture of I6 Globals and array entries. -
Inform 6 Objects - To declare I6 objects, classes, attributes and properties. -
Inform 6 Code - To generate I6 routines of imperative code.
-
-
-
Final C - To generate ANSI C-99 code from intermediate code. -
C Namespace - How identifiers are used in the C code we generate. -
C References - How changes to storage objects are translated into C. -
C Global Variables - Global variables translated to C. -
C Memory Model - How arrays of all kinds are stored in C. -
C Assembly - The problem of assembly language. -
C Arithmetic - Integer and floating-point calculations translated to C. -
C Program Control - Generating C code to effect loops, branches and the like. -
C Conditions - Evaluating conditions. -
C Literals - Text and dictionary words translated to C. -
C Object Model - How objects, classes and properties are compiled to C. -
C Function Model - Translating functions into C, and the calling conventions needed for them. -
C Input-Output Model - How C programs print text out, really. -
C Miniglk - Just enough of the Glk input/output interface to allow simple console text in and out, and no more. -
C Utility Functions - Rounding out the C library with a few functions intended for external code to use.
-
Powered by Inweb.