Skip to content
felipensp edited this page Jan 3, 2013 · 9 revisions

Clever Object File

This is an initial draft for the Clever Object file.

Extension to be used: .clo

Header

  • Magic
  • Build time
  • Clever version
  • Format version
  • Number of dependencies
  • Dependencies section offset
  • Number of constants
  • Constant pool section offset
  • Number of symbols
  • Symbol table section offset
  • Temporary pool size
  • Number of instructions
  • Instruction section offset

Sections

Dependencies section

  • Package name
  • Module name

Constant pool section

  • Type
  • Value

Symbol table section

  • Type
  • Name
  • Scope

Instruction section

  • VM opcode