This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6467使用平台dvsdk_2_00_00_18,编译自己的库使用-o3选项失败的问题



我在dm6467的dvsdk_2_00_00_18上开发自己的库,库的位置在如下目录:dvsdk_2_00_00_18\codec_engine_2_21\examples\ti\sdo\ce\examples\codecs\track,现在有性能问题,想使用o3选项优化,package.bld设置如下:

/*  *  ======== package.bld ========  */

var Build = xdc.useModule('xdc.bld.BuildEnvironment');

 var Pkg = xdc.useModule('xdc.bld.PackageContents');

/* when constructing a release, release everything */

Pkg.attrs.exportAll = true;

// Uncomment this to build debug binaries

Pkg.attrs.copts = "-o3";

/*  * Create an array containing the files to include in this package.  Note  * that the extension is added by XDC, so it need not be explicitly specified.  */ var SRCS = ["track_impl.c","track.c","tracking.c","AutoTrack.c","OverLapImage.c","MSR.c"];

for (var i = 0; i < Build.targets.length; i++) {     var targ = Build.targets[i];

    print("building for target " + targ.name + " ...");

    /*      * Add a library to this package and add the files described in      * SRCS to the library.      */     Pkg.addLibrary("lib/track", targ).addObjects(SRCS); } /*  *  @(#) ti.sdo.ce.examples.codecs.scale; 1, 0, 0,204; 7-25-2009 21:30:29; /db/atree/library/trees/ce/ce-n11x/src/  */

 

编译报错:

出现-O2 -O3两个优化选项。如果默认的话,是-O2。

请问有谁知道怎么回事吗?