inline functions

R

ramu

HI All,
Can you please tell me how does inline functions affect
the instruction cahce hit rate?

Regards
 
I

Ian Collins

ramu said:
HI All,
Can you please tell me how does inline functions affect
the instruction cahce hit rate?

It depends how big the function is and how bit the cache is.

The question is a bit like how do inline functions affect programme size?
 
A

Alan Woodland

Ian said:
It depends how big the function is and how bit the cache is.

.... And how frequently you call the function and what the cache
retention policy on your CPU is amongst other things.

There are processors out there with no instruction cache at all that are
capable of running programs generated by a C++ compiler!

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,790
Messages
2,569,637
Members
45,346
Latest member
EstebanCoa

Latest Threads

Top