CMPT 295

Why did the programmer quit their job?

A never got arrays!

Summary

Today’s Menu

Demo

  1. gcc uses leaq for addition -> sum_store.c
  2. Writing our own assembly code (arith.s) using arithmetic instructions of x86-64 assembly language
  3. makefile
    • when we compile our own *.s files with *.c files
    • when we compile only *.c files
  4. How would gcc compile our arith.c into arith.s?

Summary

Next lecture