csapplab 4 - 8

1 · · May 9, 2022, 11:23 a.m.
lab4-archlab环境安装123456789#下载archlab-handout,并在当前目录解压,然后进入目录解压simcd simsudo apt install flexsudo apt install bisonsudo apt install tcl tcl-devsudo apt install tk tk-devcd simmake clean; make#至此环境就配好了part-A这一部分进入misc目录进行工作,使用y86-64汇编编写sum.ys/rsum.ys/copy.ys12345678910111213141516171819202122232425262728293031323334353637383940414243/* linked list element */typedef struct ELE {long val;struct ELE *next;} *list_ptr;/* sum_list - Sum the elements of a linked list */long sum_list(list_ptr ls){long val...