.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

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

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

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

GDB – Graded Discussion Board CS401 – Computer Architecture & Assembly Language Programming GDB Topic Suppose we have to call the following two subroutines in our assembly code: Bubblesort_S Bubblesort_R There are two basic techniques in order to pass parameters into a subroutine: stack-based and register-based. Bubblesort_S subroutine uses the stack-based technique and Bubblesort_R subroutine uses the register-based approach. Now you are required to choose that which subroutine you will use in your assembly program in order to obtain the following features: The operation must be faster The limited number of parameters Justify your answer with valid reasons. GDB’s Instructions Provide precise and to the point answer, not more than 5 to 6 lines, avoid irrelevant details. Post your answer on the Graded Discussion Board (GDB), not on the Moderated Discussion Board (MDB). GDB will only be open for 48 hours, no more time or grace day will be provided. GDB cannot be accepted via email after the due date. Copy from the internet or other student will get zero marks

Share This With Friends......


How to Find Your Subject Study Group & Join.

Find Your Subject Study Group & Join.

+ Click Here To Join also Our facebook study Group.


This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue


Views: 2227

See Your Saved Posts Timeline

Replies to This Discussion

Bubble sort-r

Because it uses register based approach

registers will always be fastest, because that is where execution "takes place". but registers are VERY limited in terms of storage. e.g. x86 processors only had 4 general purpose registers you could store things in to, and even those were dual-purposed for certain thing.The maximum parameters a subroutine can receive are seven when all the general registers are used. Also, with the subroutines are themselves limited in their use of registers, and this limited increases when the subroutine has to make a nested call thereby using certain registers as its parameters. Due to this, parameter passing by registers is not expandable and generalization. However this is the fastest mechanism available for passing parameters and is used where speed is important.

Register-based is much faster because the registers where data is stored are directly located on the CPU. Where a stack-based implementation would have to push/pop data from memory (RAM) which is a much slower process. Registers are the fastest possible memory access you can get

Because it uses register based approach registers will always be fastest, because that is where execution "takes place". but registers are VERY limited in terms of storage. e.g. x86 processors only had 4 general purpose registers you could store things in to, and even those were dual-purposed for certain thing. The maximum parameters a subroutine can receive are seven when all the general registers are used. Also, with the subroutines are themselves limited in their use of registers, and this limited increases when the subroutine has to make a nested call thereby using certain registers as its parameters. Due to this, parameter passing by registers is not expandable and generalizable. However this is the fastest mechanism available for passing parameters and is used where speed is important

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Latest Activity

MR ROMEO replied to Marha Khan's discussion CS508 Assignment No 02 Solution & Discussion Due Date: 17-01-2018 in the group CS508 Modern Programming Languages
7 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
7 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
14 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
15 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
16 minutes ago
Haroon (MIT) and Muhammad Shahid are now friends
16 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
19 minutes ago
Profile IconAbdul Rehman Amir and Abdul Jabbar joined + M.Tariq Malik's group
22 minutes ago

Member of The Month

1. +ɹǝʞɔɐɥ

Punjab, Pakistan

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

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