Part Number: msp430f5335
Tool/software: TI C/C++ Compiler
I used to be able to use __attribute__ `used` to include a function that is not referenced anywhere. It does not seem to work anymore, how do I make sure the linker keeps a function that has not been referenced?
uC: MSP430F5335, IDE: CCS 6.1.0.00104 on Ubuntu 14.04
You are experiencing a known issue with the compiler tools. It is discussed in this forum thread. That user experiences it with the TI ARM compiler. But the same issue is present in the same version of MSP compiler.
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.
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.