Many reasons accessibility to system hardware space

Info icon This preview shows pages 20–22. Sign up to view the full content.

View Full Document Right Arrow Icon
Why Learn Assembly Language? Many reasons: Accessibility to system hardware Space and time efficiency Writing a compiler for a high-level language Accessibility to system hardware Assembly Language is useful for implementing system software Also useful for small embedded system applications Space and Time efficiency Understanding sources of program inefficiency Tuning program performance Writing compact code Lecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer 40 Assembly Language Programming Tools Editor Allows you to create and edit assembly language source files Assembler Converts assembly language programs into object files Object files contain the machine instructions Linker Combines object files created by the assembler with link libraries Produces a single executable program Debugger Allows you to trace the execution of a program Allows you to view machine instructions, memory, and registers
Image of page 20

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
21 Lecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer 41 Assemble and Link Process Source File Source File Source File Assembler Object File Assembler Object File Assembler Object File Linker Executable File Link Libraries A project may consist of multiple source files Assembler translates each source file separately into an object file Linker links all object files together with link libraries Lecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer 42 MARS Assembler and Simulator Tool
Image of page 21