Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.09 KB

File metadata and controls

43 lines (28 loc) · 1.09 KB

Code Notes

Language and compilation notes for Eragon software. OS / VM context is in software.md.

Contents

Machine code

  • Stub — instruction encodings and what the MCU actually executes to be filled.

Compiler

  • Translates source into machine code before the program runs
  • Example: C++ compiles ahead of time

Interpreter

  • Translates (or executes intermediate form) while the program runs
  • Example: CPython interprets bytecode at runtime

C++

  • Compiled language
  • Common choice for performance-sensitive robot firmware / control

Python

  • Generally called an interpreted language
  • Hybrid in practice:
    • Compiles source to bytecode first (hence .pyc files)
    • Still needs a runtime to turn bytecode into machine operations → “interpreted” designation

Crosstalk

  • Stub — signal / EMI crosstalk on boards and cabling to be filled.