DSP: TMS320C28345
PC: Windows XP
IDE: Code Composer 4.1.2
BIOS: 5.41
I have a math-intensive application. I wrote a C++ class for a vector to simplify my code, but I want it to execute as fast as possible, so I tried making all the methods "inline" (in a header file). It doesn't appear that the inlining it working though.
I found a paragraph in SPRU514C, section 2.11.5. The first inline restriction is that a function cannot be inlined if it returns a struct or union. For example, my vector addition method returns a vector object. It's probably considering this a struct and disqualifying my inline attempt.
Questions:
- Am I understanding the issue correctly so far?
- Are there any other options I should investigate besides using preprocessor macros?