Assignment
1
(Marks
10)
- Date of assignment out:20.07.2006
- Last date of report: 30.07.2006
- Compile
the following C program with -S option on
SunFire (10.5.18.61 or 10.5.18.62)
gcc -Wall -S -O0 what.c
- You
get the assembly language program (witout optimization) what.s
- Write comments in the
file .s explaining the assembly
language code and its connection with the C program.
- Use the SPARC Assembly
Language Reference Manual and SPARV-V9 Architecture Manual.
SPARK Assembly Language Manual
SPARCV9
Architecture Manual
SPARCV9
ABI Manual
Lecture I (ps) (pdf)
- It is expected that
you will understand the instruction set architecture (ISA), instruction
format, register usage convention etc. of this system.
- Report
is the commented what.s file. Make sure that the assembly code can be compiled
even after writing the comments. Name the file as <rollNo>_01.s. The file should contain your identity e.g. name,
roll number,
assignment number etc.
- Send your report
to goutam@cse.iitkgp.ernet.in
or goutam@iitkgp.ac.in