Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this week lab, the ARM code are already given. Your task is to compile them, use debug mode to step through each line, compare

image text in transcribed

image text in transcribed

For this week lab, the ARM code are already given. Your task is to compile them, use debug mode to step through each line, compare the values from both results (e.g. are the values the same? which code is faster and why?). Please also submit your screenshots similar to what I have below.

CAUsers HomeRunComputers Documents\CS-205 Computer ArchitectureWeek 6 Project2.uvproj-Vision File Edit View Project Flash Debug Peripherals Tools SVCS Window Help !01IP1// //i | Registers aDisassembly x00000008 E0211090 MLA R1,RO, RO,R1 SUBS ro, ro, #1 RO, RO, #0x00000001 BNE ; i=i-1 x0000000C E2500001 SUBS R1 Ox0000011D 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 x00000010 1AFFFFFC BNE 0x00000008 R3 W6lab2.s R5 R6 R7 R8 R9 AREA SumSquares2, code, readwrite ENTRY MOV r0,#9 MOV r1,#0 MLA rl,ro,ro,l calc i*i+ SUBS ro,ro,#1 BNE Loop END loop counter i preset to 9 0x00000000 R10 x00000000 R x00000000 0x00000000 R13 (SP) 0x00000000 R14 (LR) 0x00000000 R15 (PC) 0x00000010 CPSR x60000003 SPSR x00000000 5 Loop R12 continue until all added User/System Fast Intemupt Intemupt ProjectRegisters lCommand q Call Stack + Locs Name Loca ox:000 Restricted Version with 32768 Byte Code Size Limi Currently used: 20 Bytes (0) ASSIGN BreakDisable BreakEnable Breakkill BreakList BreakSet BreakAccess COVERAGE Call Stack CAUsers HomeRunComputers Documents' CS-205 Computer ArchitectureWeek 6 Project u pro -uv sion File Edit View Project Flash Debug Peripherals Tools SVCS Window Help 1 e I I !iF //i //i | Registers a Disassembly RO, #0x0000000A BNE Loop 0x00000008 RO, RO, RO RO , RO,RO Value | 0x00000014 E350000ACHP : Current continue until all 0x00000018 IAFFFFFA BNE 0x0000001c 00000000 ANDEO R1 R2 3 R4. R5 R6 R7 R8 3 R10 00000000 R110x00000000 R12 00000000 R13 (SP) 000000000 R14 (LR) 0x00000000 R15 (PC) 0x00000018 CPSR x60000003 -0x0000002000000000 ANDEQ AREA Sumsquares, ENIRY MOV r0,#0 MOV r1,#0 MUL 12,rO,xo ADD rl,l,r2 ADDS ro,ro,11 CHP R0,#10 BNE Loop END code, readwzite li x loop counter i preset to 3-0 calc i* 5 Loop 1-1+1 test for end of loop :continue until all added SPSR 0x00000000 -User/System Fast Interrupt Intent Abort t Undefined hternal Project Registers Command Call Stack Locals AName Locat... Type Currently used: 28 Bytes (05) ASSIGN BreakDisable BreakEnable BreakKill BreakList Breakset BreakAccess COVERAGE Call Stack. Locals Me CAUsers HomeRunComputers Documents\CS-205 Computer ArchitectureWeek 6 Project2.uvproj-Vision File Edit View Project Flash Debug Peripherals Tools SVCS Window Help !01IP1// //i | Registers aDisassembly x00000008 E0211090 MLA R1,RO, RO,R1 SUBS ro, ro, #1 RO, RO, #0x00000001 BNE ; i=i-1 x0000000C E2500001 SUBS R1 Ox0000011D 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 x00000010 1AFFFFFC BNE 0x00000008 R3 W6lab2.s R5 R6 R7 R8 R9 AREA SumSquares2, code, readwrite ENTRY MOV r0,#9 MOV r1,#0 MLA rl,ro,ro,l calc i*i+ SUBS ro,ro,#1 BNE Loop END loop counter i preset to 9 0x00000000 R10 x00000000 R x00000000 0x00000000 R13 (SP) 0x00000000 R14 (LR) 0x00000000 R15 (PC) 0x00000010 CPSR x60000003 SPSR x00000000 5 Loop R12 continue until all added User/System Fast Intemupt Intemupt ProjectRegisters lCommand q Call Stack + Locs Name Loca ox:000 Restricted Version with 32768 Byte Code Size Limi Currently used: 20 Bytes (0) ASSIGN BreakDisable BreakEnable Breakkill BreakList BreakSet BreakAccess COVERAGE Call Stack CAUsers HomeRunComputers Documents' CS-205 Computer ArchitectureWeek 6 Project u pro -uv sion File Edit View Project Flash Debug Peripherals Tools SVCS Window Help 1 e I I !iF //i //i | Registers a Disassembly RO, #0x0000000A BNE Loop 0x00000008 RO, RO, RO RO , RO,RO Value | 0x00000014 E350000ACHP : Current continue until all 0x00000018 IAFFFFFA BNE 0x0000001c 00000000 ANDEO R1 R2 3 R4. R5 R6 R7 R8 3 R10 00000000 R110x00000000 R12 00000000 R13 (SP) 000000000 R14 (LR) 0x00000000 R15 (PC) 0x00000018 CPSR x60000003 -0x0000002000000000 ANDEQ AREA Sumsquares, ENIRY MOV r0,#0 MOV r1,#0 MUL 12,rO,xo ADD rl,l,r2 ADDS ro,ro,11 CHP R0,#10 BNE Loop END code, readwzite li x loop counter i preset to 3-0 calc i* 5 Loop 1-1+1 test for end of loop :continue until all added SPSR 0x00000000 -User/System Fast Interrupt Intent Abort t Undefined hternal Project Registers Command Call Stack Locals AName Locat... Type Currently used: 28 Bytes (05) ASSIGN BreakDisable BreakEnable BreakKill BreakList Breakset BreakAccess COVERAGE Call Stack. Locals Me

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions