) 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.