Use linear assembly in codec Engine

Source: Internet
Author: User

) How to compile a DSP assembly or linear assembly program in Linux? In the codec engine installation path, VAR c64p = xdc.usemodule('ti.tar gets. c64p ') in the/packages/config. BLD file ');
Then add:
C64p. Extensions [". Sa"] = {
SUF: ". SA", Typ: "ASM:-fl"
}
Or
C64p. Extensions [". ASM"] = {

SUF: ". ASM", Typ: "ASM:-FA"

}

Bytes -------------------------------------------------------------------------------------------------

Ben,You can add your own extensions to the XDC build system that direct howa source file is transformed into object code. This is done by addingcode to the config.bld script. (The doc section describing this ispasted below.) Here's an example:linear assembly file extension: .sa (choose whatever you like)config.bld snippet:var C64P = xdc.useModule('ti.targets.C64P');C64P.extensions[".sa"] = {    suf: ".sa", typ: "asm:-fl"}; package.bld fragment:    var exe = Pkg.addExecutable("argstest", target, target.platform,                                {profile : "debug"})    exe.addObjects(['argstest.c', 'linasm.sa']);Documentation from ti.targets.Itarget://! File extensions recognized by TI targetsoverride config xdc.bld.ITarget.Extension extensions[string]  = ..ITarget.extensions XDC specified in xdc.bld.ITargetDETAILSThis is a user modifiable table used to customize file extensionsrecognized by each target.For example, to add a new assembly language extension, say ".s64", tothe target ti.targets.C64P, add the following lines to the build modelstartup script:      var C64P = xdc.module('ti.targets.C64P');      C64P.extensions[".s64"] = {          suf: ".s64", typ: "asm"      };  Note that individual targets may add additional language types.     TI_SPECIFICSFor TI targets, the typ string field of an xdc.bld.ITarget.Extensionstructure may be of the form "<cmd>:<langOpt>" where <cmd> is one of"asm", "c", "cpp", and <langOpt> is the language option to used toidentify the source language of a source file. This allows one toexplicitly control the language flag passed to the compiler based on asource file's extension; in particular, one can define separate sourceextensions for "linear" and "scheduled" assembly files, or simply cause".s62" files to be treated as "linear" assembly rather than "scheduled"assembly.For example,tiTargets.C62.extensions[".s62"] = {suf: ".s62", typ:"asm:-fl"};causes all ".s62" files to be treated as linear assembly.If no ':' appears in the typ string, a default will be used: "-fa" for"asm" files "-fc" for "c" files, and "-fp" for "cpp" files. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.