I will try to use the value analysis on a project in C, but this project contains some .c
file where we can find assembler code. When I try to launch frama-C on these files, I get an error on the assembly code.
The assembler code is desgned for Motorola 68040, I have seen in the documentation, that I need to use the option -machdep
to change the analysis platform for the module, but this platform isn't defined, so do I need to contact the support or can I configure the module to ignore the assembler code?
And a second question, on SpareCode module. Can we configure the module, to just see the dead code and conserve the spare code (in the case of a procedure)?
The code of otherfile.c (without comment) :
#pragma asm
XDEF _CONVERSION_INTEL
MESSAGE SET 20
NB_CARAC SET 26
SECTION mc3_sys_code
_CONVERSION_INTEL
movem.l d1-d3/a0,-(sp)
move.l MESSAGE(sp),a0
moveq #0,d1
move.w NB_CARAC(sp),d1
moveq #0,d3
PERMUTE:
move.w (a0),d2
rol.w #8,d2
move.w d2,(a0)
addq.l #2,a0
addq.l #2,d3
cmp.l d3,d1
bgt PERMUTE test
movem.l (sp)+,d1-d3/a0
rts
#pragma endasm