What information is stored in symbol table?


Symbol Table

Symbol Table is an important data structure created and maintained by the compiler in order to keep track of semantics of variables i.e. it stores information about the scope and binding information about names, information about instances of various entities such as variable and function names, classes, objects, etc.

Types of Compilers

  • Four main types of compilers:
    • Cross Compilers.
    • Bootstrap Compilers.
    • Source to source/transcompiler.
    • Decompiler.

Programming Languages and Compilers

Programming languages like JavaScript, Python, Ruby use interpreters. Programming languages like C, C++, Java use compilers.

Operation of Cross Compilation

Cross compilation will happen on a Linux x86 machine for 96Boards ARM device.

  1. Update 96Boards (ARM) system and Host (x86 Machine) computer.
  2. If you are using libsoc and or mraa make sure they are installed and up to date.
  3. Install cross compilers on host machine.
  4. Install package dependencies.

Cross-Compiling a Kernel

Cross compiling Linux ARM kernel modules Target system.

  • Download linux kernel source.
  • Download cross compiler toolchain.
  • Take out kernel build config.
  • Build the kernel.
  • Build the module.

Types of Compilers

Broadly, there are three types of Compilers:

  • Single Pass Compilers.
  • Two Pass Compilers.
  • Multi pass Compilers.
  • Cross Compiler.
  • Load & Go Compiler.
  • Threaded Code Compiler.
  • Just-In-Time Compiler (JIT)
  • Parallelizing Compiler.

Lascia un commento