Skip to main content

cs201 GDB 2016




For more discuss and ask question join this group
 
Solved  By : Tahir Siddiqui(Mani)






Answer:

"Inline functions should be your choice because.1.It avoid function calling overhead.2. variables push/pop on the stack overhead is avoided during function call3. No return call from a function to other function which is again an overhead4.no linker complaining happen when include at mutiple places."
-----------------------------------below is argument why normal functions are not choice .
"If any one interested and against the argument of using inline function of my previous reply let just see how normal function works.
For normal function call the program stores mem addr of instructions when u call a func. It loads the function into the memory then copies parameter values and jumps to the memory location of function you r calling.Now it run the function codes and stores the function return valu, and then jump back to the location from where function was invoked.This is huge much run time overhead of normal function.

Comments

Popular posts from this blog

IT Intern (Microsoft Product)

For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Solved   By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Job Description We offer Internship in IT 03 months Unpaid internship Responsible for Managing IT Products/Services. Maintains relationships with clients by providing support, information, and guidance. Good presentation skills. Good oral & written communication knowledge of MS Office 50%. Traveling Required Team Work Candidate must have a Motor Bike and laptop. Fresh candidates are encouraged to apply. Job Details Industry: Information Technology ...

cs403 GDB Solution 2016

cs403 GDB 2016 For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Posted By : Tahir Siddiqui(Mani)  Total Marks                                   5 Starting Date Wednesday, July 27, 2016 Closing Date Thursday, July 28, 2016 ...