2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. _mep-function-attributes:
8 MeP Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^
11 These function attributes are supported by the MeP back end:
13 .. index:: disinterrupt function attribute, MeP
15 .. mep-fn-attr:: disinterrupt
17 On MeP targets, this attribute causes the compiler to emit
18 instructions to disable interrupts for the duration of the given
21 .. index:: interrupt function attribute, MeP
23 .. mep-fn-attr:: interrupt
25 Use this attribute to indicate
26 that the specified function is an interrupt handler. The compiler generates
27 function entry and exit sequences suitable for use in an interrupt handler
28 when this attribute is present.
30 .. index:: near function attribute, MeP
34 This attribute causes the compiler to assume the called
35 function is close enough to use the normal calling convention,
36 overriding the :option:`-mtf <MeP -mtf>` command-line option.
38 .. index:: far function attribute, MeP
42 On MeP targets this causes the compiler to use a calling convention
43 that assumes the called function is too far away for the built-in
46 .. index:: vliw function attribute, MeP
50 The :mep-fn-attr:`vliw` attribute tells the compiler to emit
51 instructions in VLIW mode instead of core mode. Note that this
52 attribute is not allowed unless a VLIW coprocessor has been configured
53 and enabled through command-line options.