AnsweredAssumed Answered

Calling Assembly from C problems on 215xx

Question asked by jon_harris8 on Sep 15, 2017
Latest reply on Sep 21, 2017 by GregFowlerFAE

I am trying to call an assembly route from C, following the example project "Calling Assembly from C (ADSP-21469)" from CCES  As the name indicates, this project was created for the 21469.  As is, it builds fine.  I then switched the processor type to 21584 and built it.  I got this linker error:


'Building target: C_calls_asm.dxe'

'Invoking: CrossCore SHARC Linker'

cc21k.exe -proc ADSP-21584 -si-revision 1.0 -TC:/projects/SymNet-AirTools/DSP/CrossCore/examples/crosscore_2.6.0.0/Calling\ Assembly\ from\ C\ (ADSP-21469)/system/startup_ldf/app.ldf -no-mem -LC:/projects/SymNet-AirTools/DSP/CrossCore/examples/crosscore_2.6.0.0/Calling\ Assembly\ from\ C\ (ADSP-21469)/Debug/system/startup_ldf -flags-link -MDDEBUG,-MDCORE1 -add-debug-libpaths -o C_calls_asm.dxe @input-file.txt -flags-link -od,.\.


[Error li1021] The following symbols referenced in processor '21584_CORE_1' could not be resolved:

'dotprod [dotprod.]' referenced from 'src\caller.doj'


Linker finished with 1 error

cc3089: fatal error: Link failed (code:1)

make: *** [C_calls_asm.dxe] Error 1



This is the same problem I'm having in my own code.  Has something changed between 214xx and 215xx in regard to how you call assembly?  It's an extremely simple example.

I've attached the example project with the processor changed to 21584.