CX 51ユーザーズマニュアル----MOD 517ダミー命令


宣言:
1、本翻訳は個人の学習にのみ使用され、本人は技術サポートを提供する義務がなく、これによるいかなる結果も負担しない.
2、商業用途に使用しないでください.
3、英語:http://www.keil.com/support/man/docs/c51/.
4、皆さんが私と交流して検討することを歓迎します[email protected]).
MOD517 Compiler Directive
Home » Compiling Programs » Directives » Reference » MOD517
Abbreviation
None.
Arguments
Optional parameters, enclosed in parentheses, to control support for individual components of the 80C517.
Default
NOMOD517
µVision
Options — Target — Use On-Chip Arithmetic Unit. Options — Target — Use multiple DPTR registers.
Description
The MOD517 directive instructs the Cx51 Compiler to produce code for the additional hardware components (the arithmetic processor and the additional data pointers) of the Infineon C517 or variants. This feature improves the performance of integer, long, and floating-point math operations, as well as functions that make use of the additional data pointers (memcpy, memmove, memcmp, strcpy, and strcmp). Library functions that take advantage of the arithmetic processor have a 517 suffix. Refer to the Library Reference for details on these functions.) Additional parameters may be specified with the MOD517 directive to control the Cx51 Compiler support of the individual components of the Infineon device. When specified, the parameters must appear within parentheses immediately following the MOD517 directive. Parentheses are not required if no additional parameters are specified.
Directive
Description
NOAU
When specified, the Cx51 Compiler uses only the additional data pointers of the Infineon device. The arithmetic processor is not used. The NOAUparameter is useful for functions that are called by an interrupt while the arithmetic processor is already being used.
NODP8
When specified, the Cx51 Compiler uses only the arithmetic processor. The additional data pointers are not used. The NODP8 parameter is useful for interrupt functions declared without the using function attribute. In this case, the extra data pointers are not used and, therefore, do not need to be saved on the stack during the interrupt.
Specifying both of these additional parameters with MOD517 has the same effect as using the NOMOD517 directive.  Note
Although it may be specified several times in a source file, the MOD517 directive is valid only when defined outside of a function declaration.
The Infineon C517 uses the DPSEL SFR to select the DPTR register. On the Evatronix R8051XC Core the same register has the name DPS. Evatronix also offers the BSE(Bank Switch Enable) for automatic DPTR selection with register bank switches.
On Infineon C517 devices, the DPSEL SFR is located at address 0x92. However, some devices (like the Mentor M8051EW) locate DPSEL at a different address. The address for DPSEL is stored in a public symbol and may be changed by adding the following to an assembler source file like STARTUP.A51:
PUBLIC ?C?DPSEL
?C?DPSEL DATA 0A2H   ; DPSEL address for Mentor M8051EW

See Also
BSE, NOMOD517
Example
C51 SAMPL517.C  MOD517

#pragma MOD517 (NOAU)

#pragma MOD517 (NODP8)

#pragma MOD517 (NODP8, NOAU)

 Related Knowledgebase Articles
C51: MOD517/NOMOD517 DIRECTIVE
C51: SUPPORT FOR THE 515C EIGHT DATA POINTERS
MOD 517コンパイラ擬似命令
Home » Compiling Programs » Directives » Reference » MOD517
略語
なし.
パラメータ
パラメータオプションは、かっこで囲まれ、80 C 517デバイスの独立したコンポーネントのサポートを制御します.
デフォルト
NOMOD517
µVision
Options — Target — Use On-Chip Arithmetic Unit. Options — Target — Use multiple DPTR registers.
説明
MOD 517ダミー命令は、Cx 51コンパイラがInfineon C 517またはバリエーションの添付ハードウェア(演算プロセッサおよび添付ファイルのデータポインタ)のためにコードを生成することを示す.この特性は,整数型,長整数型および浮動小数点型の数学的操作,および添付ファイルデータポインタを用いた関数(memcpy,memmove,memcmp,strcpy,およびstrcmp)の性能を向上させる.算術プロセッサを使用するライブラリ関数には517接頭辞があります.これらの関数の詳細リファレンスライブラリ参照.MOD 517疑似命令で指定された添付パラメータは、Cx 51コンパイラがInfineonデバイスをサポートする追加コンポーネントを制御するために使用される.指定すると、パラメータはカッコで囲まなければなりません.パラメータを追加する必要がない場合は、カッコは必要ありません.
パラメータ
説明
NOAU
指定された場合、Cx 51はInfineonデバイスの追加データポインタのみを使用し、算術プロセッサは使用しない.NOAUパラメータは、割り込み(現在の算術プロセッサが使用中)によって呼び出される関数に役立ちます.
NODP8
指定された場合、Cx 51はInfineonデバイスの演算プロセッサのみを使用し、追加のデータポインタは使用しない.NODP 8パラメータは,関数属性宣言を用いない割り込み関数に有用である.この場合、追加のデータポインタは使用されないため、割り込み中にスタックに保存する必要はありません.
MOD 517でこの2つのパラメータを同時に指定することは、NOMOD 517の擬似命令効果と同じである.注意
MOD 517疑似命令は、ソースファイルで複数回指定できますが、関数宣言の外側に定義されている場合にのみ有効です.
Infineon C 517は、DPSEL特殊機能レジスタを用いてDPTRを選択する.Eventronix R 8051 XCコアにおいて、同一の特殊機能レジスタ名はDPSである.EventronixはBSE(Bank Switch Enable)も提供しており、レジスタ群切替時にDPTRを自動的に選択する.
Infineon C 517デバイスでは、DPSELアドレスは0 x 92であるが、一部のデバイス(Metor M 8051 EWのような)DPSELアドレスは異なる場所に位置している.DPSELのアドレスは1つの共通符号に格納されており、以下のソースファイル(STARTUP.A 51のような)により変更可能:
PUBLIC ?C?DPSEL
?C?DPSEL DATA 0A2H   ; DPSEL address for Mentor M8051EW
リファレンス
BSE, NOMOD517
C51 SAMPL517.C  MOD517

#pragma MOD517 (NOAU)

#pragma MOD517 (NODP8)

#pragma MOD517 (NODP8, NOAU)

関連知識ベースタイトル
C51: MOD517/NOMOD517 DIRECTIVE
C51: SUPPORT FOR THE 515C EIGHT DATA POINTERS