⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c60asm.i

📁 Montavista Linux 下的多平台编译软件xdc
💻 I
字号:
* ========================================================================= **                                                                           **   TEXAS INSTRUMENTS, INC.                                                 **                                                                           **   NAME                                                                    **       c60asm.i -- CALL/RET compatibility bridge for pre-4.30 tools         **                                                                           **   USAGE                                                                   **       Just .include at top of your source file.  Alternately, use         **       the compiler flag -ahi or -ahc to force inclusion in the            **       source-file.                                                        **                                                                           **   DESCRIPTION                                                             **       This file provides a set of pseudo-operations that are intended     **       to replace the "B" and "BNOP" branch instructions in certain        **       usage scenarios.  The point of the new pseudo-ops is to allow the   **       tools to provide more precise information to the profiler as to     **       the *purpose* of a branch, so that it can provide more accurate     **       profile data.                                                       **                                                                           **       Mnemonic    Purpose                                                 **       CALL        Calls to functions that will return to this function.   **       RET         Exiting (returning from) this function.                 **       CALLRET     Calling a function that will return on your behalf.     **       CALLNOP     Same as CALL, but with parallel NOPs (C64x only)        **       RETNOP      Same as RET, but with parallel NOPs (C64x only)         **       CRNOP       Same as CALLRET, but with parallel NOPs (C64x only)     **                                                                           **   NOTES                                                                   **       This file is actually just a compatibility shim, intended to        **       provide forward compatibility between tool versions < 4.30          **       and tool versions >= 4.30.  The purpose of this file it purely      **       compatibility.  Tool versions >= 4.30 are required to gain the      **       greater-precision information for the profiler.                     ** ------------------------------------------------------------------------- **             Copyright (c) 2002 Texas Instruments, Incorporated.           **                            All Rights Reserved.                           ** ========================================================================= ** ========================================================================= ** Create "asmver" with current version of assembler. Value is 0 if assembler* version predates the predefined symbol.* ========================================================================= *           .if $isdefed("__TI_ASSEMBLER_VERSION__")           .asg    __TI_ASSEMBLER_VERSION__, asmver           .elseif $isdefed(".ASSEMBLER_VERSION")           .asg    .ASSEMBLER_VERSION, asmver           .else           .asg    0, asmver           .endif* ========================================================================= ** If the assembler version predates the support call mnemonics* ========================================================================= *           .if asmver < 430           .asg    B,    CALL     ; Function Call           .asg    B,    RET      ; Return from a Function           .asg    B,    CALLRET  ; Function call with Call / Ret chaining.           .asg    B,    call     ; Function Call           .asg    B,    ret      ; Return from a Function           .asg    B,    callret  ; Function call with Call / Ret chaining.           .if .TMS320C6400           .asg    BNOP, CALLNOP  ; C64x BNOP as a Fn. Call           .asg    BNOP, RETNOP   ; C64x BNOP as a Fn. Return           .asg    BNOP, CRNOP    ; C64x Fn call w/, Call/Ret chaining via BNOP.           .asg    BNOP, callnop  ; C64x BNOP as a Fn. Call           .asg    BNOP, retnop   ; C64x BNOP as a Fn. Return           .asg    BNOP, crnop    ; C64x Fn call w/, Call/Ret chaining via BNOP.           .endif           .asg ";" , .asmfunc           .asg ";" , .endasmfunc           .endif

⌨️ 快捷键说明

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