Part Number: AWR1642
Tool/software: TI C/C++ Compiler
Hey guys and gals,
I'm developing on the C674x side of the AWR1642, and I require a lot of constants that are based trig transcendental functions. During my first pass, it seemed that the compiler was not simplifying the trig constants which I would normally expect out of a compiler.
In response I started working with a handful of Template Functions which should make good enough approximations (Taylor Series of depth 8-10), however, it seems that I'm hitting the 512 depth limit when I recurse through my array. I've seen a few posts for flags like --pending_instantiations=0 and --static_template_instantiation which should suffice. However, when I add these flags, I run into an issue where the C source files, which comprise the majority of my project, refuse to compile.
Is there a way to specify that my C++ files use the --pending_instantiations=0 or --static_template_instantiation flags, then link to the remainder of my C files?
I'm currently using Code Composer Studio Version: 7.3.0.00019
Alex ShirleyHowever, when I add these flags, I run into an issue where the C source files, which comprise the majority of my project, refuse to compile.
I'd appreciate if you would show the diagnostics you see when this happens.
Alex ShirleyIs there a way to specify that my C++ files use the --pending_instantiations=0 or --static_template_instantiation flags, then link to the remainder of my C files?
Please try this. Remove the --pending_instantiations and --static_template_instantiations options from the general project settings. Then use File Specific Options to add those options back on only the C++ files.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click This Resolved My Issue on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
In reply to George Mock:
In reply to Alex Shirley:
Alex ShirleyCommand-line error #985: pending instantiations option can be used only when compiling C++
That's annoying. So, I filed CODEGEN-4182 in the SDOWP system. This entry does not report a bug, but requests that the compiler be changed. The option --pending_instantiations should be ignored when compiling a C file. You are welcome to follow it with the SDOWP link below in my signature.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.