TECHNOLOGY 

Published on
KembaraXtra-Computer Science-High-Level Programming
1. The Need for High-Level Languages
  • Problem with Assembly Language:
    • Time-consuming and error-prone.
    • Difficult to maintain.
    • CPU architecture-specific (not portable).
  • Solution: High-Level Languages
    • More human-readable syntax.
    • CPU-independent.
    • Promotes portability.
2. Compilation
  • Compiler: A program that translates high-level language code into machine code.
  • Portability: High-level languages allow you to compile code for different processors with minimal changes.
  • Output: The compiler produces an object file containing machine code for a specific processor.
3. Linking
  • Object Files: The output of compilation, but not directly executable.
  • Linker: A program that combines one or more object files into a single executable file.
    • Resolves dependencies and includes necessary code libraries.
    • Prepares the executable for the operating system to run.
4. The Build Process
  • Building Software: The complete process of converting source code to an executable file, encompassing compilation and linking.
  • Common Usage: Developers often say "compiling" to mean the entire build process.
  • Automation: Compilers often automatically invoke the linker, which obscures the linking step.



Picture
0 Comments