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

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C6x | Re: malloc

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

  

Post a new Thread

malloc - Yasser Attarizzi - Jun 21 16:16:00 2003



Hi C6x
i have a very strange problem
i allocated memory dinamicaly with malloc it is ok at start but during the
running of the program suddenly that address chage and pointed to another
location and the program act strangely
please help me in tyhis problem
yaser attar izzy





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

Re: malloc - Author Unknown - Jun 22 5:45:00 2003

If you are using BIOS you should use MEM_alloc().
I had problems when I used malloc along with MEM_alloc(). You have to be
careful when using the BIOS configuration, which mainly sets up MEM_alloc().
Anyway, MEM_alloc() is more powerful in terms of allowing proper memory
alignment and debugging.

/khalid




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

Re: malloc - Ganesh Vijayan - Jun 23 3:46:00 2003

Hi,
I think more than malloc, your program has potential bugs. I dont think there
are any problems using malloc or MEM_alloc or MEM_calloc.
Kindly check if you are not modifying your pointer inside the program. Else
check your heap size. Have you put a check after malloc to crosscheck if the
memory has been successfully allocated or not ? If not, put a check.
I guess it is more a case that you are modifying your pointer rather than a
problem with malloc.
Thanks and Regards,
Ganesh

----- Original Message -----
From: Yasser Attarizzi
To:
Sent: Saturday, June 21, 2003 9:46 PM
Subject: [c6x] malloc Hi C6x
i have a very strange problem
i allocated memory dinamicaly with malloc it is ok at start but during the
running of the program suddenly that address chage and pointed to another
location and the program act strangely
please help me in tyhis problem
yaser attar izzy _____________________________________




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