在对c66x dsp程序做优化过程中,通过分析compiler feedback信息发现 Loop Disqualification Messages,代码中的某些for loop编译器未能做software pipelining,从TI相关文档中发现,增加-pm和-op2编译选项是一种解决方案,因此在vision_apps/concerto/compilers/cgt6x.mak 中增加了-pm 和 -op2选项,使用make vision_apps编译后报错(未加这两个选项时可正常编译)。报错信息如下:
Linking /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_1.out
Linking /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_2.out
undefined first referenced
symbol in file
--------- ----------------
appGetIpcResourceTable /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/lib/J7/C66/FREERTOS/release/app_rtos_common_c6x_2.lib<app_init.obj>
error: unresolved symbols remain
error: errors encountered during linking;
"/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FRE
ERTOS/release/vx_app_rtos_linux_c6x_2.out" not built
concerto/finale.mak:212: recipe for target '/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_2.out' failed
make[1]: [/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_2.out] Error 1 (ignored)
undefined first referenced
symbol in file
--------- ----------------
appGetIpcResourceTable /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/lib/J7/C66/FREERTOS/release/app_rtos_common_c6x_1.lib<app_init.obj>
error: unresolved symbols remain
error: errors encountered during linking;
"/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FRE
ERTOS/release/vx_app_rtos_linux_c6x_1.out" not built
concerto/finale.mak:212: recipe for target '/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_1.out' failed
make[1]: [/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/C66/FREERTOS/release/vx_app_rtos_linux_c6x_1.out] Error 1 (ignored)
Copying built libraries: /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/out/J7/R5F/FREERTOS/release to /opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/lib/J7/R5F/FREERTOS/release
make[1]: Leaving directory '/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps'
root@in-tda4-dev-docker:/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps#
root@in-tda4-dev-docker:/opt/ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps#