Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This lab is a team exercise. Teams must consist of 2 to 3 persons. Goals: This laboratory is divided into two parts. The first exercise

image text in transcribed
This lab is a team exercise. Teams must consist of 2 to 3 persons. Goals: This laboratory is divided into two parts. The first exercise further introduces the students to the IAR Embedded Workbench integrated development environment (IDE), as well as gaining more understanding of the graphical user interface (GUI) and its interaction with the target system hardware. The second part is a programming exercise that will compare the execution of a program written in C++ and the same program (providing the same functionality) written in assembly language. This programming exercise will execute instructions to find the elements in the Fibonacci sequence; this programming will involve arithmetic manipulation instructions that will be programmed, compiled/assembled, and executed in the IDE. References; Tutorial for the IAR Workbench software, reference materials, other reference books, the Bible, and the hardcopy printouts and schematics as needed. Background: The Fibonacci sequence, named after Leonardo Bonacci (12^th century Italy), is found by starting with the integers 0, 1. These numbers are added to yield the next member, then repeat this process forever (the upper bound is infinity): The first few numbers in the sequence arc 0, 1, 1, 2, 3, 5, 8, 13, 21.... The ratio of two adjacent members of the sequence A_i and A_i+1 approaches the Golden Ratio, which is (1+ Squareroot 5)/2 tildetilde 1.618.... Requirements: Refer to the tutorial, which was provided during your last lab session. Using the tutorial step through the steps of assembling, linking, and loading an assembly language program. Demonstrate your understanding of the IDE Workbench operational features to your instructor. Specifically, make sure you can assemble, link, load and execute an assembly language program. Make sure the following features in the IDE are understood and demonstrated: CPU window, source code window, memory window (both code and data), data watch windows. Develop your solution for the programming assignment, which will find the first 25 members of the Fibonacci sequence. Implement the program in C++. Implement the program in ARM assembly language. Deliverables: Turn in a report consisting of following sections: Cover page IAR Workbench comments on the tutorial walk-through Solution to programming assignment in both C++ and ARM assembly language, consisting of: Source code screen images showing successful compilation/assembling Screen images showing the program outputs Submit a short write-up of the two programming implementations. Compare and contrast the two approaches. Include comments on code execution efficiency (speed, size); programming challenges with each approach; other factors

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

=+ what roles should government play in them ?

Answered: 1 week ago

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago