请问这两个有什么区别,如果我调用ccs提供的库函数,传入的数组使用alloc,请问会有什么影响?
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.
请问这两个有什么区别,如果我调用ccs提供的库函数,传入的数组使用alloc,请问会有什么影响?
Zhang Hui,
你使用的是哪个版本的Vlib?
你可以看看是否两者是使用的memory section/stack是否不同。
我使用的是
Code Composer Studio
Version: 5.5.0.00077
在VLIB_memory.h中有提示:
/* Following should be called to allocate buffers passed to VLIB functions * for each test vector */
void *VLIB_memalign(size_t alignment, size_t size);
void *VLIB_malloc(size_t size);
但是并不能看到VLIB_malloc如何实现的
Zhang Hui,
CCS版本和Vlib版本没有必然的关系。你下载的Vlib是从下面网址下载的么?你使用的是C64p,C674还是C66的Vlib库?
http://software-dl.ti.com/libs/vlib/latest/index_FDS.html
Chrise Meng,谢谢!
我使用的是VISION_SDK_02_08_00_00_setupwin32(1.46G)提供的Vlib库,里面有vlib_c66x_3_3_0_0文件夹,应该是C66的Vlib库。
Zhang Hui,
我在e2e论坛询问了一下,相关回复如下:
http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/544971/1991081#1991081
No you do not need (nor should you) use VLIB_memalign or VLIB_malloc. All of the functions in the VLIB_memory.h and VLIB_test.h are for test purposes, and need not be used for calling the VLIB library functions.
VLIB_malloc optionally allocates the memory from L2SRAM when this test features is enabled (internal testing). By default, it just internally calls malloc.