A
Andrew Au \(Newsgroup\)
I knew it is OT, comp.lang.c is a very narrow group that talk about nothing
except standard C. But I really need a group to ask this question, please
redirect me to a *real* newsgroup if it is really OT.
My question is about function call.
In my program, I make a function called a lot of times. I want to see:
What is the cost involved in a function call?
If there is something like inlining call in c++, so that I can reduce the
cost?
Can I reduce function call cost by reducing number of argument, for example,
make them global?
If there is some really short function call that is the bottleneck, what can
I do?
float utterance_getData(Utterance utterance, int time, int dimension) {
return utterance->data[time][dimension];
}
except standard C. But I really need a group to ask this question, please
redirect me to a *real* newsgroup if it is really OT.
My question is about function call.
In my program, I make a function called a lot of times. I want to see:
What is the cost involved in a function call?
If there is something like inlining call in c++, so that I can reduce the
cost?
Can I reduce function call cost by reducing number of argument, for example,
make them global?
If there is some really short function call that is the bottleneck, what can
I do?
float utterance_getData(Utterance utterance, int time, int dimension) {
return utterance->data[time][dimension];
}