I am developing an audio application on ADSP-21489 platform. For dynamically allocating a large pool of memory, used C-run-time library function 'malloc'.
The C/C++ Compiler Manual for SHARC Processors specifies that - "functions such as malloc() only return double-word
aligned memory". But when I checked the pointer returned by my malloc call, it seems like only byte aligned.
Is there any way to specify that the malloc function should return word aligned memory ?
Tool chain details:
CrossCore Embedded Studio 126.96.36.199609201624
C/C++ Development Tooling Source 188.8.131.52506070905
C/C++ Development Tools 184.108.40.206506070905
C/C++ Compiler : SHARC version 220.127.116.11 (Aug 26 2016 18:45:47), BUILD-B-REL-CCES2_4-20160826_1812