awtk/docs/how_to_build_with_keil_ac6.md
2021-06-12 10:10:25 +08:00

10 lines
522 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 如何使用keil的AC6工具链编译
有些平台必须使用AC6工具链编译但是使用AC6编译会有些问题请先做下列修改
1. 在C/C++(AC6)设置中指定Language C为gnu99
2. 在C/C++(AC6)设置中从Misc Controls中去掉 --gnu
3. 选中.cpp的文件右键打开"Options for file xxx.cpp"菜单File Type选择“C++ Source file”
4. 在AC6中有些语法变化比如__attribute__((at(0x08041000)))是无效的,请改成 __attribute__((section(".ARM.__AT_0x08041000")))。