stem/CS/Code Types.md
andy 33ac3007bc vault backup: 2023-05-27 22:17:56
Affected files:
.obsidian/graph.json
.obsidian/workspace-mobile.json
.obsidian/workspace.json
STEM/AI/Neural Networks/Activation Functions.md
STEM/AI/Neural Networks/CNN/FCN/FlowNet.md
STEM/AI/Neural Networks/CNN/FCN/ResNet.md
STEM/AI/Neural Networks/CNN/FCN/Skip Connections.md
STEM/AI/Neural Networks/CNN/GAN/DC-GAN.md
STEM/AI/Neural Networks/CNN/GAN/GAN.md
STEM/AI/Neural Networks/CNN/Interpretation.md
STEM/AI/Neural Networks/Deep Learning.md
STEM/AI/Neural Networks/MLP/Back-Propagation.md
STEM/AI/Neural Networks/MLP/MLP.md
STEM/AI/Neural Networks/Transformers/Attention.md
STEM/CS/ABI.md
STEM/CS/Calling Conventions.md
STEM/CS/Code Types.md
STEM/CS/Language Binding.md
STEM/img/am-regulariser.png
STEM/img/skip-connections.png
2023-05-27 22:17:56 +01:00

1.3 KiB

Machine Code

  • Machine language instructions
  • Directly control Processors
  • Strictly numerical
  • Lowest-level representation of a compiled or assembled program
    • Lowest-level visible to programmer
    • Internally microcode might used
  • Hardware dependent
  • Higher-level languages translated to machine code
    • Compilers, assemblers and linkers
    • Not for interpreted code
      • Interpreter runs machine code
  • Assembly is effectively human readable machine code
    • Has mnemonics for opcodes etc

Microcode

  • Layer between CPU hardware and instruction set architecture
  • Normally written during design phase
    • Deployed to ROM or PLA
      • Programmable logic array
  • Machine code often has some backward compatibility
    • Microcode is circuit specific

Byte Code

Portable Code

  • Efficient execution by interpreter
  • Compact numeric codes, constants and references
    • Encode compiler output following analysis and validation
  • Can be further compiled
  • Typically passed to VM

Object Code

  • Product of compiler
  • Sequence of statements
    • Machine code
    • Intermediate
      • RTL
  • Linked to form executable
    • Object code portion of machine code not yet linked