Open
Conversation
Author
|
change lab-1i to iterative version |
change qemu script in Makefile... * add while loop to run from 1 to 50 * after 47, it exceeds 32-bit integer's range, overflow * add three more var for calculating the correct answer * use cut to get the program's output and compare with the correct answer * if the ans is wrong, it will output the correct answer
My loop start with 3, so there will be a bug if I didn't add exception.
Move lab-1, lab-1i's Makefile to ../make_fib.mk And include the file
reduce registers and instruction sets
Core registers and AAPCS usage * R0 ~ R3: Arguments * R4 ~ R8, R10, R11: Variable register * R9: Platform register * R12: IP (The Intra-Procedure-call scratch register) * R13: SP (The Stack Pointer) * R14: LR (The Link Register) * R15: PC (The Program Counter)
…alysis.
1. use `make qemu` to analysis, the output is 'analysis.txt'
2. after arrange the analysis file use gnuplot to generate the chart
(the command is in 'gplot_cmd.txt' file)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
use recursive to do lab-1 -> fab(x)
another fast version of recursive to do lab-1i -> fab(x,first,second)