6.31.15. MeP Function Attributes

6.31.15 MeP Function Attributes

These function attributes are supported by the MeP back end:

disinterrupt
On MeP targets, this attribute causes the compiler to emit instructions to disable interrupts for the duration of the given function.
interrupt
Use this attribute to indicate that the specified function is an interrupt handler. The compiler generates function entry and exit sequences suitable for use in an interrupt handler when this attribute is present.
near
This attribute causes the compiler to assume the called function is close enough to use the normal calling convention, overriding the -mtf command-line option.
far
On MeP targets this causes the compiler to use a calling convention that assumes the called function is too far away for the built-in addressing modes.
vliw
The vliw attribute tells the compiler to emit instructions in VLIW mode instead of core mode. Note that this attribute is not allowed unless a VLIW coprocessor has been configured and enabled through command-line options.

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/MeP-Function-Attributes.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部