This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Assembly function in C code

Part Number: LAUNCHXL-F28379D


I want to integrate an assembly function in my project.

I looked at the C compiler User's guide, and found some explanation. I tried to do the same example as describe:

- my project contains a asm file:

- this asm file contains only one function: _asmfunc

- I declared this function as extern in the C file, where I have touse this function:

But this does not work. The compiler cannot build the project:

Can somebody explain to me why ?

Also, why does not the assembly function need to know the section where the code has to be written ? (I thought the the line .sect ".text" had to be added)

Thank you for helping me.