Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 217329

Forum Post: Compiler/TMS320F28335: Compiler not abiding by __inline and FUNC_ALWAYS_INLINE

$
0
0
Part Number: TMS320F28335 Tool/software: TI C/C++ Compiler Hello, Hello, I created a class for writing and reading to an FPGA. One of the functions is given below, which is contained in a header file with the class declaration. The compiler is not inlining the function. I also tried adding the #pragma FUNC_ALWAYS_INLINE before each of the member function declarations, but that also didn't cause the compiler to inline the functions. What am I doing wrong? Thanks, Stephen #pragma FUNC_ALWAYS_INLINE __inline FPGADATA Fpga::tReadValue(FPGA_ADDRESS tAddress) { FPGADATA tReturnValue; DINT; DRTM; tReturnValue = *(FPGADATA*)(FPGA_BASE_ADDRESS + tAddress); EINT; ERTM; return tReturnValue; }

Viewing all articles
Browse latest Browse all 217329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>