Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SylixOS嵌入式实时操作系统上移植coost #270

Open
hyena04 opened this issue Oct 27, 2022 · 2 comments
Open

SylixOS嵌入式实时操作系统上移植coost #270

hyena04 opened this issue Oct 27, 2022 · 2 comments
Assignees

Comments

@hyena04
Copy link

hyena04 commented Oct 27, 2022

编译器采用gcc-arm-none-eabi

在编译context_arm.S时,出现如下问题

make all arm-sylixos-eabi-gcc -mcpu=cortex-a9 -mno-unaligned-access -O0 -g3 -gdwarf-2 -Wall -fmessage-length=0 -fsigned-char -fno-short-enums -fno-strict-aliasing -x assembler-with-cpp -DSYLIXOS -D__linux__ -D__ARM_ARCH_7A__ -DSYLIXOS_LIB -I"D:\SylixOS_WS\workspace\coost/include" -I"D:/SylixOS_WS/workspace/ArmLite/libsylixos/SylixOS" -I"D:/SylixOS_WS/workspace/ArmLite/libsylixos/SylixOS/include" -I"D:/SylixOS_WS/workspace/ArmLite/libsylixos/SylixOS/include/network" -MMD -MP -MF ./Debug/dep/libcoost.so/src/co/context/context_arm.d -c src/co/context/context_arm.S -o Debug/obj/libcoost.so/src/co/context/context_arm.o src/co/context/context_arm.S: Assembler messages: src/co/context/context_arm.S:102: Error: bad instruction function tb_context_make,export=1'
src/co/context/context_arm.S:142: Error: bad instruction endfunc' src/co/context/context_arm.S:152: Error: bad instruction function tb_context_jump,export=1'
src/co/context/context_arm.S:204: Error: bad instruction endfunc' make: *** [Debug/obj/libcoost.so/src/co/context/context_arm.o] Error 1

无法识别汇编代码中的 function 以及 endfunc

@hyena04
Copy link
Author

hyena04 commented Oct 27, 2022

处理器是 ARM Cortex-A9

@shuai132
Copy link
Contributor

gcc-arm-none-eabi是裸机的编译器,简单说也就是没法用操作系统api(因为它既不是linux也不是其他os)。
所以这个库肯定是没法用的了(比如协程部分等)~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants