tombstone diagrams


Summary

Essentially, adjacent blocks must have the same language, you can’t jump from one language to another without a compiler/interpreter.

T-diagrams consist of combinations of the following four components:

  • Programs which are implemented in a particular language (i.e. Java, Python, C/C++)
  • Language A to language B Interpreters
  • Language A to language B Compilers which are implemented in a language C
  • Physical Machines implementing/running a particular language (i.e. x86-64, ARM-64)

tombstone_diag.png

Concept

Interpreters

Program that executes another program, usually written in a lower level language compared to its target language

Compilers

Translates programs from one language to another, that can then be interpreted and run on a CPU via machine code

Application

Example using NUSMODS:
tombstone_eg.png

Extra

Check for correctness
https://nus-cs2030s.github.io/2122-s2/01-compiler.html - More details about tombstone diagrams