TMS320F28335: Question about using extern with inline functions

Part Number: TMS320F28335

Tool/software:

Dear TI Support,

I would like to ask for clarification regarding the use of the extern keyword in combination with inline functions in TI compilers.

For some reason, we have to declare an inline function as extern for testing purposes, and we want to be sure that there is no risk in doing so. For example:

extern inline void function();

We checked the TMS320C28x Optimizing C/C++ Compiler v22.6.0.LTS documentation, and it seems that extern inline functions are treated separately.

We would like to ask for more detailed information about this case and the possible risks or limitations associated with this usage.

Thank you in advance for your support.

Best regards

  • I suggest you follow the advice in this article (not from TI).  Note this article applies to the C99 standard for C (or higher).  By default the C2000 compiler supports the C89 standard.  So, you need to build with the option --c99 or --c11.  For details, please search the C28x compiler manual for the sub-chapter titled Characteristics of TMS320C28x C.

    Thanks and regards,

    -George