How to include assembly code

Hi Alex,
I would like to execute the optimized implementation which is meant to run on an EFM32 cortex M4.
However, I faced some issues with the optimized one. The implementation contains some assembly files *.S .
To include them I added in my makefile this line:

ASRC += gf16mat_prod_512_36_normal_normal_asm.S …

And I have the errors as in the figure below

Any suggestions how to solve this?

Best,
Sousou

The error messages show that the problem is not with including assembly, the problem is with some of the instructions in that assembly. If you search “FPU” on this forum you’ll find others have run into similar issues, and how they resolved them. Searching your error messages on google suggests you may be missing some compiler flags (e.g. Error: selected FPU does not support instruction -- `vstmdbeq r0!,{s16-s31}' - Kernel - FreeRTOS Community Forums).

Jean-Pierre

Yea, I solved this by setting the flags to
-mfpu=vfp3 -mfloat-abi=softfp

However I had another issue, I was not able to create the mapfile. I have this error

arm-none-eabi-gcc: error: unrecognized command line option '-CWLITEARM.map'
make: *** [<builtin>: simpleserial-glitch] Error 1