"-threads" is a flag for non-ARM processors only. I noticed that some demo Sharc projects have this linker flag enabled, while some do not.
Another odd thing is that while you can can set this flag in the Linker section using the CCES GUI, there is no GUI entry for it for the compiler, which is odd, because this seems like a compiler switch, not a linker switch, since it has the effect of setting the _ADI_THREADS macro when doing compiles. There is no documentation of what this flag does during links.
Anyway, for compiling a FreeRTOS project, am I supposed to set this flag in the Linker section? Do I also have to set this flag in the C++ Compiler Additional Options section?
To further complicate matters, for the ARM processor, these demo FreeRTOS projects often have a flag "-madi-threads" set. I cannot figure out what this does. There is nothing online about this, and the -m flag is inadequately described in the documentation.
Thanks for any information.