Function Index for Built-in Function C

inline void myfunction(){
    //something here
}

void main(){
    void (*p)(void);
    p = myfunction;
    p();
}

What machine codes can be created by different compilers for this and in what situations?

+3
source share
2 answers

Since your compiler will need a function address, it will generate a separate copy of the object code.

+3
source

Yes - but it will depend on your compiler and its settings on what side effects:

There are various ways to define built-in functions; any particular type of definition can definitely highlight autonomous object code, definitely not highlight autonomous object code, or only highlight autonomous object code if it is known to be necessary. Sometimes this can lead to duplication of object code ...

+2

All Articles