From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/m32r_002fd-function-attributes.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 devdocs/gcc~13/m32r_002fd-function-attributes.html (limited to 'devdocs/gcc~13/m32r_002fd-function-attributes.html') diff --git a/devdocs/gcc~13/m32r_002fd-function-attributes.html b/devdocs/gcc~13/m32r_002fd-function-attributes.html new file mode 100644 index 00000000..e10b7eec --- /dev/null +++ b/devdocs/gcc~13/m32r_002fd-function-attributes.html @@ -0,0 +1,12 @@ +

6.33.14 M32R/D Function Attributes

These function attributes are supported by the M32R/D back end:

+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.

+ model (model-name) +

On the M32R/D, use this attribute to set the addressability of an object, and of the code generated for a function. The identifier model-name is one of small, medium, or large, representing each of the code models.

Small model objects live in the lower 16MB of memory (so that their addresses can be loaded with the ld24 instruction), and are callable with the bl instruction.

Medium model objects may live anywhere in the 32-bit address space (the compiler generates seth/add3 instructions to load their addresses), and are callable with the bl instruction.

Large model objects may live anywhere in the 32-bit address space (the compiler generates seth/add3 instructions to load their addresses), and may not be reachable with the bl instruction (the compiler generates the much slower seth/add3/jl instruction sequence).

+
+

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

+
-- cgit v1.2.3