Tool/software:
Hi everyone,
The TMS320C28x compiler has many features that can be used either via a #pragma directive or via function and variable attributes.
For example:
__attribute__((always_inline))
is equivalent to#pragma FUNC_ALWAYS_INLINE
__attribute__((interrupt))
is equivalent to#pragma INTERRUPT
- etc.
I need to write a coding standard for a new project and I'd like to include a rule that defines which of the the two approaches must be adopted.
I am pretty certain that I read somewhere in an official document from Texas Instruments that the attribute approach is considered to be superior and more "modern" than the pragma approach, but I can't seem to find this source anymore. Can someone from Texas Instruments confirm or correct this assumption? Is one of the two approaches more likely to be deprecated at some point in the future?
Kind Regards,
Pierre