Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Declaring Attributes of Functions   [Contents][Index]


6.4.1.15 M32R/D Function Attributes

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

interrupt

Use this attribute to indicatethat the specified function is an interrupt handler. The compiler generatesfunction entry and exit sequences suitable for use in an interrupt handlerwhen this attribute is present.

model (model-name)

On the M32R/D, use this attribute to set the addressability of anobject, and of the code generated for a function. The identifiermodel-name is one ofsmall,medium, orlarge, representing each of the code models.

Small model objects live in the lower 16MB of memory (so that theiraddresses can be loaded with theld24 instruction), and arecallable with thebl instruction.

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

Large model objects may live anywhere in the 32-bit address space (thecompiler generatesseth/add3 instructions to load their addresses),and may not be reachable with thebl instruction (the compilergenerates the much slowerseth/add3/jl instruction sequence).


[8]ページ先頭

©2009-2026 Movatter.jp