CPSC 355 Lecture Notes - Lecture 3: Gnu Debugger, Ibm Basic Assembly Language And Successors, Elementary Arithmetic

195 views2 pages

Document Summary

Create a sparc assembly language program that finds the minimum of y = 2x3 - range -2 . 11, by stepping through the range one by one in a loop and testing. Use only integers for x, and do not factor the expression. Use the printf() function to display to the screen the values of x, y and the current minimum on each iteration of your loop. Also, put the value for the minimum into register %l0 at the end of your program. Also, add macros to the above program to make it more readable (use m4). In particular, provide macros for all constants and heavily used registers. To verify that your assembly language program works, run both versions under gdb, capturing output from each session using script. For version 1, single step through the program (use ni) for at least one iteration of your loop, displaying the instruction being executed (use display/i ).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents