All,
I'm working on getting a library of functions to build for Stellaris under CCS, and am having some difficulty porting over the inline assembly calls the library makes. The syntax of the assembly calls presently in the library is __FOO(bar), so I have created a header file that redefines each of the calls to match the syntax I believe I need, _foo(bar). This is working for some commands (specifically, _norm, _smuad, and _smlald), but there are a number of commands that are giving me a "function declared implicitly" warning when trying to compile. It looks like the commands that are giving me issues are defined in the ARM Unified Assembler Language (clz, ssat, qadd, qsub), so I was hoping that by passing in the --ual flag, the compiler would acknowledge that these are valid assembler instructions and not continue to give me warnings. Sadly, that is not the case. Is there something else I need to do to get the compiler to recognize the UAL instructions? Or is there an option that must be checked somewhere other than the "Use unified assembly language (--ual)" checkbox found in Project Properties->C/C++ Build->Settings->Tool Settings->TMS470 Compiler->Assembler Options? It is also worth mentioning that I am not using asm statements for this because I need to pass C variables to the instruction, and my understanding is that asm statements can only reference registers.
Any help would be appreciated!
-Jordan Wills