How to reduce function call overhead in arm based systems



How to reduce function call overhead in arm based systems..

Answer / Megha

To reduce function call overhead in ARM-based systems, consider the following strategies:
1. Inline functions: Inlining frequently called small functions can minimize the overhead of function calls.
2. Function pointers: Instead of calling functions indirectly through a table, you can directly call functions to eliminate the extra indirection.
3. Static inline functions: Static inline functions are resolved at compile time and their code is inserted at the point of the function call, thus reducing runtime overhead.
4. Reduce stack usage: Minimize local variable usage in your functions as it increases stack size and can cause performance issues.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

What software languages have you used to design, develop, and debug software application interfaces?

0 Answers  


Explain what are real-time embedded systems?

1 Answers  


How are macros different from inline functions?

1 Answers  


Why are patterns important?

1 Answers  


Are you familiar with design patterns? What design software have you used and in what situations?

1 Answers  


Explain what are the uses of the keyword static?

1 Answers  


What is an embedded system and why it is used?

1 Answers  


What are recursive functions? Can we make them in line?

1 Answers  


Tell me what are buses used for communication in embedded system?

1 Answers  


What is difference between using a macro and inline function?

1 Answers  


PROVIDE ME NOTES ON EMBEDDED TCHNLOGY

1 Answers   TCS,


How are variables mapped across to the various memories by the c compiler?

1 Answers  


Categories