This preview shows pages 20–22. Sign up to view the full content.
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 codeLecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer40Assembly Language Programming Tools•Editor–Allows you to create and edit assembly language source files •Assembler–Converts assembly languageprograms into object files–Object files contain the machine instructions•Linker–Combines object filescreated 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
has intentionally blurred sections.
Sign up to view the full version.
21Lecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer41Assemble and Link ProcessSourceFileSourceFileSourceFileAssemblerObjectFileAssemblerObjectFileAssemblerObjectFileLinkerExecutableFileLinkLibrariesA project may consist of multiple source filesAssembler translates each source file separately into an object fileLinker links all object files together with link librariesLecture Slides on Computer Arch & Assembly Lang ICS 233 @ Dr A R Naseer42MARS Assembler and Simulator Tool