GCC를 사용하는 Cortex-M3 프로세서 용 외부 함수 인터페이스 라이브러리를 작성하려고합니다. http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html에 따르면Cortex-M3 용 Libffi를 만들 수 있습니까?
-mthumb
Generate code for the Thumb instruction set. The default is to use the 32-bit ARM instruction set. This option automatically enables either 16-bit Thumb-1 or mixed 16/32-bit Thumb-2 instructions based on the -mcpu=name and -march=name options. This option is not passed to the assembler. If you want to force assembler files to be interpreted as Thumb code, either add a `.thumb' directive to the source or pass the -mthumb option directly to the assembler by prefixing it with -Wa.
내가 어셈블러에 여러 가지 다양한 인수를 전달 시도하고 그것을 알아낼 수 없습니다. 일반적인 출력은 다음과 같습니다 :
Building file: ../source/ffi/sysv.S
Invoking: GCC Assembler
arm-bare_newlib_cortex_m3_nommu-eabi-gcc -Wa,-mthumb-interwork -I"/home/neil/m3projects/robovero/firmware/include" -o"source/ffi/sysv.o" "../source/ffi/sysv.S"
../source/ffi/sysv.S: Assembler messages:
../source/ffi/sysv.S:145: Error: selected processor does not support ARM opcodes
../source/ffi/sysv.S:147: Error: attempt to use an ARM instruction on a Thumb-only processor -- `stmfd sp!,{r0-r3,fp,lr}'
...
내가 조립 전문가가되기없이 코어 텍스 M3에 libffi를 사용할 수 있습니까?
arm-bare_newlib_cortex_m3_nommu-eabi를 호출 할 때 직접 다른 오류가 발생합니다.
libffi-discuss의 누군가는 _armways_ 암시 모드를 암 모드로 설정하려고 시도한 .arm 명령어가 있음을 지적 했으므로 확실히 사용할 수 없습니다. 감사! – Neil