electroRF
Member
Hi guys,
I have a question please.
Say that you define an Inline Function in an H File.
e.g.
If no one calls this function, will it occupy zero memory?
If the Inline Function was defined as Static Inline, e.g.:
Will it still occupy Zero Memory if no one calls it?
I'm using GNU Compiler.
Thank you.
I have a question please.
Say that you define an Inline Function in an H File.
e.g.
C:
__inline unsigned int returnMax(int a, int b)
{
if (a > b)
return a;
return b;
}
If no one calls this function, will it occupy zero memory?
If the Inline Function was defined as Static Inline, e.g.:
C:
static __inline unsigned int returnMax(int a, int b)
{
if (a > b)
return a;
return b;
}
Will it still occupy Zero Memory if no one calls it?
I'm using GNU Compiler.
Thank you.