We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS401 GDB Spring 2019 Solution & Discussion

Suppose we have a 32-bit ARM Cortex-M microcontroller with 2 GB memory. We have the following two ways of programming:

1. Traditional way of using assembly language.

2. Using high level language by converting it to machine code through KEIL embedded development tools.

Which of the mentioned approaches would you prefer in the context of code optimization, maintenance, real time performance and portability? Provide logical reasoning in either case.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1194

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

CS401 GDB SOLUTION

In above given condition we have given sufficient enough memory. So I will be using C which is

a high level language over assembly.

Working with assembly is very difficult, so it is quite difficult to maintain and debug. Whereas C

(High Level Language) is very simple and gives structured approach which is easily

maintainable.

Portability is the most important factor. If the source code is not portable then we

have to pay a lot of time. Assembly language is not portable. A program

written

on assembly would need to be completely rewritten for it to run on another type

of machine. Whereas, portability is the major advantage of higia level language.

The C (high level language) provides portability.

Code Optimization in assembly is im

possible (certainly very difficult) unless you are

working on a tiny code. But in high level language you can do that if required.

Two or three decades ago one could say that assembly is much faster than high

level language but now that compiler have mad

e so much progress. You can opt

high level language over assembly language. As, some of high level language

like C and Java are also close to hardware

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

SOLUTION:

In above given condition we have given sufficient enough memory. So I will be using high level language by converting it to machine code through KEIL embedded development tools.

 Working with assembly is very difficult, so it is difficult to maintain and debug the code. On the other hand C (High Level Language) is very simple and gives structured approached which is easily maintainable.

Portability is the most important factor. If the source code is not portable then we have to pay a lot of time. Assembly language is not portable. A program written on assembly would need to be completely rewritten for it to run on another type of machine. Portability is the major advantage of high level language.

The C (High level language) provides portability.

Code Optimization in assembly is impossible (certainly very difficult) unless you are working on a small code. But in high level language you can do that if required.

Two or three decades ago one could say that assembly is much faster than high level language but now that compiler have made so much progress. You can optimize high level language over assembly language.

#CS401 GDB

GDB Question
Suppose we have a 32-bit ARM Cortex-M microcontroller with 2 GB
memory. We have the following two ways of programming:
1. Traditional way of using assembly language.
2. Using high level language by converting it to machine code through KEIL
embedded development tools.
Which of the mentioned approaches would you prefer in the context of code
optimization, maintenance, real time performance and portability? Provide
logical reasoning in either case.
Solution
In above given condition we have given sufficient enough memory. So I will be using high level
language by converting it to machine code through KEIL embedded development tools.
Working with assembly is very difficult, so it is difficult to maintain and debug the code. On the
other hand C (High Level Language) is very simple and gives structured approached which is
easily maintainable.
Portability is the most important factor. If the source code is not portable then we have to pay a
lot of time. Assembly language is not portable. A program written on assembly would need to be
completely rewritten for it to run on another type of machine. Portability is the major advantage
of high level language.
The C (High level language) provides portability.
Code Optimization in assembly is impossible (certainly very difficult) unless you are working on
a small code. But in high level language you can do that if required.
Two or three decades ago one could say that assembly is much faster than high level language
but now that compiler have made so much progress. You can optimize high level language over

assembly language.

CS401 GDB SOLUTION*

In above-given condition, we have given sufficient enough memory. So I will be using C which is
a high-level language over the assembly.
Working with assembly is very difficult, so it is quite difficult to maintain and debug. Whereas C
(High-Level Language) is very simple and gives a structured approach which is easily
maintainable.
Portability is the most important factor. If the source code is not portable then we
have to pay a lot of time. Assembly language is not portable. A program
is written
on assembly would need to be completely rewritten for it to run on another type
of machine. Whereas, portability is the major advantage of a high-level language.
The C (high-level language) provides portability.
Code Optimization in assembly is impossible (certainly very difficult) unless you are
working on a tiny code. But in a high-level language, you can do that if required.
Two or three decades ago one could say that assembly is much faster than high-level language but now that compiler has made so much progress. You can opt
high-level language over assembly language. As some of the high level languages
like C and Java are also close to the hardware

RSS

Latest Activity

+ !! "AS" !! replied to + !! "AS" !!'s discussion Jis Tarah ..
6 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Baat Karna ...
7 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Ghalti...
7 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Yaha Har Cheez ..
8 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Alfaaz Ki Nisbat..
9 minutes ago
Profile IconSafdar Mehmood, Shayaan, Hafiz muhammad sufyan and 28 more joined Virtual University of Pakistan
10 minutes ago
+ ! ! ! ! ! ! ReBeL replied to ٥ دن's discussion Gunahon ki gehrai
38 minutes ago
MUHAMMAD USMAN replied to MIT's discussion cs604 Quize#1 fall semester 2019 in the group CS604 Operating Systems
48 minutes ago
+ ! ! ! ! ! ! ReBeL replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss tasvir ko Unwan Dein :-P
54 minutes ago
مخلص posted a discussion
1 hour ago
ambreen fatima and Muhammad Hamza Mehmood are now friends
1 hour ago
MIT added a discussion to the group CS604 Operating Systems
1 hour ago
sardarni liked + M.Tariq Malik's discussion MCM531 Community Journalism Assignment No 01 Fall 2019 Solution & Discussion Due Date: 22-11-2019
1 hour ago
sardarni joined + M.Tariq Malik's group
2 hours ago
blackeagle replied to + M.Tariq Malik's discussion EDU402 Curriculum Development Assignment No 01 Fall 2019 Solution & Discussion in the group EDU402 Curriculum Development
2 hours ago
sardarni joined + M.Tariq Malik's group
2 hours ago
sardarni joined + M.Tariq Malik's group
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" liked +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
3 hours ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service