Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | aligned malloc

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

aligned malloc - esbn8 - May 1 8:02:31 2006

Hi,
I am wondering if there is a function corresponding to the 
_aligned_malloc() from MSVC in CCS libraries. 

I need to align a dynamic array and since it.s not global I cant use 
the DATA_ALIGN pragma...

Thanks for your time, Esben.

______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: aligned malloc - =?ISO-8859-1?Q?osman_=F6nal?= - May 1 15:39:46 2006

You may write dynamic memory allocation to the index of CCS help document.
There explained some peculiarities. For example :

instead of a definition such as:

struct big table[100];

use a pointer and call the malloc function:

struct big *table;
table = (struct big *)malloc(100*sizeof(struct big));

On 4/29/06, esbn8 <s...@hotmail.com> wrote:
>
> Hi,
> I am wondering if there is a function corresponding to the
> _aligned_malloc() from MSVC in CCS libraries.
>
> I need to align a dynamic array and since it.s not global I cant use
> the DATA_ALIGN pragma...
>
> Thanks for your time, Esben.

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: aligned malloc - Guy Eschemann - May 2 6:59:21 2006

If you're using DSP/BIOS, have a look at the MEM_alloc() function in the
DSP/BIOS API. Its third parameter allows you to specify the alignment.
Regards,
Guy.

On 4/29/06, esbn8 <s...@hotmail.com> wrote:
>
> Hi,
> I am wondering if there is a function corresponding to the
> _aligned_malloc() from MSVC in CCS libraries.
>
> I need to align a dynamic array and since it.s not global I cant use
> the DATA_ALIGN pragma...
>
> Thanks for your time, Esben.

______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

RE: aligned malloc - Suresh Kumar N - May 3 8:09:21 2006

Hi,
	I think you can allocate memory using and malloc() and align it as you
want.

regards,
Suresh

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com]On Behalf Of esbn8
Sent: Saturday, April 29, 2006 12:00 PM
To: c...@yahoogroups.com
Subject: [c6x] aligned malloc
Hi,
I am wondering if there is a function corresponding to the
_aligned_malloc() from MSVC in CCS libraries.

I need to align a dynamic array and since it.s not global I cant use
the DATA_ALIGN pragma...

Thanks for your time, Esben.

The information contained in this electronic message and any attachments to this
message are intended for the exclusive use of the addressee(s)and may contain
confidential or privileged information. If you are not the intended recipient,
please notify the sender or a...@tataelxsi.co.in

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )