7.1.1 Bytecode File Format

The fcvm executes Franc C bytecode files.

They have the following header structure:

┌─────────────────────────────────────┐
│ Magic Number (4 bytes)              │  0x45 0x0C 0x45 0x0C
├─────────────────────────────────────┤
│ Bytecode Instructions               │  Variable length
└─────────────────────────────────────┘

Magic Number: ‘0x45 0x0C 0x45 0x0C’ (4 bytes), as defined in the Franc C bytecode reference. - Validates file format at VM initialization - Invalid magic number triggers immediate error