I need to measure execution time of Hanoi Towers program, written in assembly language. Is there any function or specific register value used to do this task..?
Measure execution time, using SPIM
3.4k Views Asked by Alba Xhani At
1
There are 1 best solutions below
Related Questions in ASSEMBLY
- (x64 Nasm) Writeline function on Linux
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Why do we need AX instead of MOV DS, data directly with a segment?
- Bootloader in Assembly with Linux kernel
- How should the byte sequence 0x40 0x55 be interpreted by an x86-64 emulator?
- C++ code into assembly
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- Equivalent to asm volatile in Gfortran?
- Show 640x480 BMP image with inline ASM c++
- Keep track of numbers entered in by a user in assembly
- 8086 Assembly Arrays with I/O
- DB ASM variable in Inline ASM C++
- What does Jump to means in callgrind?
- How to convert binary into decimal in assembly x8086?
Related Questions in EXECUTION-TIME
- Update statement taking too long (7 minutes)
- PHP script runs much longer than max_execution_time?
- How to test function for execution timing in android?
- Slow performance in spark streaming
- Java ReplaceAll vs For loop with Replace in it
- Execute Code in Parallel in PHP to minimize execution time
- PHP elapsed execution time on different server
- Couchbase Query Execution time?
- Java, limit the BufferedReader reading time
- how to minimize the execution time for a java program?
- What is the difference?
- Execution time with process.hrtime() return vastly different result
- Does the gcc -g debugging flag affect program execution?
- Java problem time limit exceeded issue
- Why is it faster to create threads than it is to create processes?
Related Questions in MIPS32
- How to demonstrate a 32-bit MIPS with FPUs in a FPGA?
- Finding the Nth character in a string and printing it MIPS32 assembler
- Stack push operation in MIPS Assembly
- How can I use simd in MIPS?
- User input length wrong result in MIPS32
- Opening file always returns "-1" in QtSpim
- Fetch address not aligned on word boundary ,MIPS32
- MIPS Assembly Alignment Align n
- How to call a function with to parameters in mips32
- mips32 break instruction executed
- Stimulate a clock using nested loops in mips
- Mips Linux: Logging Kernel Panic into mtd partition
- MIPS unsigned operations
- MIPS 32 always stores 10 mul and li in $t
- MIPS reverse the bits code ( Converted from C code) ...But it is not working
Related Questions in SPIM
- SPIM print ascii char
- SPIM - Are register/memory values retained until SPIM is reinitialized?
- SPIM: Cannot open file
- Trouble writing from a MIPS program to a .txt file
- Measure execution time, using SPIM
- Understanding recursion with MIPS assembly language
- How to implement MIPS methods
- Spim MIPS Simulator not launching (Stanford cs143)
- Continuous Arithmetic Overflow
- calculating offset
- Whats wrong with this MIPS/QtSPIM While Loop Code
- Mips how to store user input string
- How would i get this program to show show instead of three?
- Unaligned address in inst/data fetch: 0x100100cb -> Exception 4 [Address error in inst/data fetch] occurred and ignored
- How do you enter command line arguments in SPIM
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't know specifically about SPIM but any mips processor has a Count register which increments at half CPU clock. If SPIM emulates this register you can easy measure program execution time. Just read its content before and after program was executed.
If SPIM does not emulate this register or counts instructions, MARS mips emulator does. In general measuring time in emulator is pointless since depending on the host hardware time would be different for the same program. Instruction counter is a better measure of performance since it would be the same independent of emulator host.
MARS has an instruction counter and I think it would run SPIM program.
After a short search I found this: http://www.cs.colostate.edu/~mstrout/spim/keepstats.html
Modified SPIM that counts instructions.