ARM C 编译器问题

windzhg 2003-06-17 10:28:37
各位,现有一针对ARM芯片编写的程序,其中有代码如下:
#pragma noregsave(acc_VMainAcmpPlay) , acc_VMainAcmpPlay是一个函数
#pragma section _opening
#pragma section
#pragma inline( gfmStrlen ) ,gfmStrlen是一个函数。

我查了一些ARM 编译器的参考手册,虽然里面提到了可以用#pragma 这种方式来给编译器提供信息,但是在手册中找不到上述的#pragma应用,请问各位这些#pragma应用的含义和在哪里可以查到?谢谢。


...全文
114 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
windzhg 2003-06-23
  • 打赏
  • 举报
回复
up
archer_hao 2003-06-23
  • 打赏
  • 举报
回复
UP
  • 打赏
  • 举报
回复
你用的是不是arm架构的cpu呀,不是基于pc的吧。你用的开发平台是什么,我原来用的是SDT.
如果你用VC是不行的,它是针对x86架构的cpu的,不是针对arm架构的。
windzhg 2003-06-17
  • 打赏
  • 举报
回复
这是MSDN上的解释,但我说的程序是用ARM C 编译器 来编的,它和VC编译器不是一回事吧?
gai 2003-06-17
  • 打赏
  • 举报
回复
这是MSDN上的解释

#pragma
The pragma command is very similar in theory to a command-line switch; however, you do not need to re-enter a pragma command each time you compile a MOF file. The following example illustrates pragma command syntax:

#pragma [command]
You usually place a pragma command at the beginning of a MOF file. However, you can place some commands, such as the pragma namespace command, in the body of your MOF code. The following example shows pragma preprocessor commands that indicate to the MOF compiler that it must place classes and instances in the root\cimv2 namespace and compile the file in which the commands are included during repository recovery:

#pragma autorecover
#pragma namespace ("\\\\.\\root\\cimv2")
commandos 2003-06-17
  • 打赏
  • 举报
回复
up
windzhg 2003-06-17
  • 打赏
  • 举报
回复
这程序原来是用SDT开发的,现在我要做它的仿真,也就是在PC上来模拟它这程序的功能,所以需要知道这些#pragma应用的含义,但是手册里的#pragma说明里又没有我提到的这几种。请问你以前用SDT开发的时候,有没有这样用过?或是在那些资料里可以查到?

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧