Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
Hi All, I am working on C6446 Davinci EVM. I need to write one of my C FOR loops in linear assemble for better performance. Evrithing I do gives me wright result except loading data type long. Whwn I call my linear assembly function that sends me pointer to array with long data types, inside assembly function I am not getting write results. I am using LDH comand, I used LDDW and LDH and result was same. When I am using LDH, the first value I read from array is correct, every other value is not correct. Does anyone know which command I need to use? Any advice is welcome. Thank you all, Madnan
> Subject: Load long dayta type > Posted by: "Moranjkic Adnan" m...@yahoo.com moranjkicadnan > Date: Mon May 26, 2008 3:18 am ((PDT)) > > Hi All, > > I am working on C6446 Davinci EVM. I need to write one of my C FOR loops in > linear assemble for better performance. Evrithing I do gives me wright result > except loading data type long. Whwn I call my linear assembly function that > sends me pointer to array with long data types, inside assembly function I am > not getting write results. > > I am using LDH comand, I used LDDW and LDH and result was same. > When I am using LDH, the first value I read from array is correct, every > other value is not correct. > Does anyone know which command I need to use? Hi Adnan, No doubt, the right instruction to load a long (which is 40 bit size) is the LDDW. Refer to SPRU732, SPRU187, SPRU186 and finally SPRU198 for the C6000 data type specification, instruction set and programmer's reference. Rgds, Andrew > Any advice is welcome. > Thank you all, > Madnan > ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x