msp430的本征函数~~~

liuchang910781261 2015-05-05 11:56:29
/* Deprecated, please use "__bis_SR_register" instead. (If the
* return value of this intrinsic is used, you can also use
* "__get_SR_register".) */
__intrinsic unsigned short _BIS_SR(unsigned short);

请问大神:为什么这里使用的是本征函数?什么是本征函数,它与普通函数有什么区别?请大神普及下知识~~~感谢
...全文
116 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuchang910781261 2015-05-12
  • 打赏
  • 举报
回复
引用 3 楼 zgl7903 的回复:
intrinsic 函数 我的理解就是使用了硬件指令集特性提高软件执行速度和效率的函数, 如: 硬件乘法器 位移 硬件DES 硬件CRC 等
感谢大神~~~
zgl7903 2015-05-06
  • 打赏
  • 举报
回复
intrinsic 函数 我的理解就是使用了硬件指令集特性提高软件执行速度和效率的函数, 如: 硬件乘法器 位移 硬件DES 硬件CRC 等
mangoalx 2015-05-05
  • 打赏
  • 举报
回复
Intrinsic function From Wikipedia, the free encyclopedia This article is about compiler intrinsic functions. For X toolkit, see Intrinsics. In compiler theory, an intrinsic function is a function available for use in a given programming language whose implementation is handled specially by the compiler. Typically, it substitutes a sequence of automatically generated instructions for the original function call, similar to an inline function. Unlike an inline function though, the compiler has an intimate knowledge of the intrinsic function and can therefore better integrate it and optimize it for the situation. This is also called builtin function in many languages. Compilers that implement intrinsic functions generally enable them only when the user has requested optimization, falling back to a default implementation provided by the language runtime environment otherwise. Intrinsic functions are often used to explicitly implement automatic vectorization and parallelization in languages which do not address such constructs. Altivec and OpenMP are examples of APIs which use intrinsic functions to declare, respectively, vectorizable and multiprocessor-aware operations during compilation. The compiler parses the intrinsic functions and converts them into vector math or multiprocessing object code appropriate for the target platform. Microsoft[1] and Intel's C/C++ compilers as well as GCC[2] implement intrinsics that map directly to the x86 SIMD instructions (MMX, SSE, SSE2, SSE3, SSSE3, SSE4). In the latest version of the Microsoft Visual Studio (VS2012), the Visual C++ compiler does not support inline assembler for X86-64[3] (neither do VS2010,[4] VS2008,[5] VS2005[6]). To compensate for the lack of inline assembly, new intrinsics have been added that map to standard assembly instructions that are not normally accessible through C/C++ (e.g.: bit scan). The HotSpot JVM's just-in-time compiler also has intrinsics for specific Java APIs.[7]
dceacho 2015-05-05
  • 打赏
  • 举报
回复
网上看了下, 本征函数和物理关系密切, 和计算机科学完全不沾边

27,374

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 单片机/工控
社区管理员
  • 单片机/工控社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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