porting_support.h

来自「DEMOLL16_Lab_code使用资料」· C头文件 代码 · 共 34 行

H
34
字号
/*
 *  This file contains porting mechanism pragmas to port HCS08 code to ColdFire V1.
 *  It is included using #include "porting_support.h" in the preprocessor panel.
 */
 
/* Inline Assembly 
#pragma check_asm    strict | report | skip | reset

given a sequence of inline assembly instructions:
    strict    reports an error on every problem encountered
    report    reports a single message for entire sequence and stops codegen
    skip      assume all instructions are illegal, 
              stops codegen whenever an assembly sequence is found, 
              reports a single message per assembly sequence
    reset     returns to the previous stacked state, stack depth is one.
*/
#pragma check_asm  report         /* report only the first illegal instruction per assembly statement/routine */

/* Absolute Definitions
#pragma warn_absolute    on | off | reset

if on a literal index trigger a warning, macros will not. 
The checking for these will be limited to non .h files in an attempt to limit erroneous reports.
*/
#pragma warn_absolute on           /* report definitions with absolute addresses user code */
 
/* Pointer Cast
#pragma warn_any_ptr_int_conv on | off

if on the compiler warns about these accesses.
*/
#pragma warn_any_ptr_int_conv on   /* report casting of absolute addresses to pointers */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?