Arquitecture

The Move language directory consists of five parts:

  • The virtual machine (VM), which contains the bytecode format, a bytecode interpreter, and infrastructure for executing a block of transactions. This directory also contains the infrastructure to generate the genesis block.

  • The bytecode verifier, which contains a static analysis tool for rejecting invalid Move bytecode. The virtual machine runs the bytecode verifier on any new Move code it encounters before executing it. The compiler runs the bytecode verifier on its output and surfaces the errors to the programmer.

  • The Move intermediate representation (IR) compiler, which compiles human-readable program text into Move bytecode. Warning: the IR compiler is a testing tool. It can generate invalid bytecode that will be rejected by the Move bytecode verifier. The IR syntax is a work in progress that will undergo significant changes.

  • The standard library, which contains the Move IR code for the core system modules such as LibraAccount and LibraCoin.

  • The tests for the virtual machine, bytecode verifier, and compiler. These tests are written in Move IR and run by a testing framework that parses the expected result of running a test from special directives encoded in comments.

Last updated

Was this helpful?