please, give me an example how to do this in CCES 2.9.2.A method described 3 years ago is not working in current 2.9.2 version.Linker cannot find assembler subroutine called in C code.By the way, have also problem with double precision computation debugging, as in the memory and register window double precision floating point display format does'nt exist.Also very inconvenient is the same display format for all memory and register tabs. If I choose floating point format for data register, in case of DAG register is complete nonsense. Please, correct this.
Please refer the attached example which builds fine.
To use an assembly function or variable in your C/C++ program, declare the symbol with the .GLOBAL assembler directive in the assembly…
Byte-Addressing supported processors have the ability to access individual 8-bit bytes in memory. This feature is known as byte-addressing. Each individual 8-bit byte has a unique address…
Thank you for your feedback.
We have already added those enhancements in our internal database and it will be fixed in future release of CCES.
Best Regards,Santha kumari.K
And also could you please share us the project which helps to simulate the linker issue("Linker cannot find assembler subroutine called in C code.".)
This will be helpful for us to assist you better
Hello Santha kumari.K,
thank you for the answer.
Here is the simple test project having mentioned problem
To use an assembly function or variable in your C/C++ program, declare the symbol with the .GLOBAL assembler directive in the assembly routine and import the symbol by declaring the symbol as extern in the C program. Compiling with the -char-size-8 switch on processors that support byte-addressing, the asm symbol name will have a dot suffix, otherwise it will have an underscore prefix.
Please refer in CCES help below for more information of Naming Conventions for SymbolsCrossCore® Embedded Studio 2.9.2 > SHARC® Development Tools Documentation > C/C++ Compiler Manual for SHARC® Processors > Compiler > C/C++ Run-Time Model and Environment > Function Call and Return > Symbol Names in C/C++ and Assembly
Dear Santha kumari.K,