Menu

TutorialCompilerTemplates

Tom Harwood

Template Management

All the tutorial compilers share a common TemplateManager facade over a StringTemplateGroup set of MIPS-specific templates.

TemplateManager

The TemplateManager is a thin facade over the StringTemplateGroup. Its primary API is the getTemplate(templateName [attrName, attrValue]*) method, which creates a template by the specified name and sets attribute values using the pairs of attrName, attrValue arguments.

MIPS Assembly Language Snippets

src/templates/MIPS.stg holds parameterized MIPS assembly language templates.

| First Compiler Intro | Front End | Code Generator | Templates |


Related

Wiki: FirstCodeGenerator
Wiki: FirstCompiler
Wiki: FirstFrontEnd
Wiki: SecondCompiler
Wiki: SecondFrontEnd

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.