DSPRelated.com
Forums

Memory allocation in C6711

Started by motti_ch1 August 16, 2004
Hello.

How do I allocate memory in the SDRAM?
Is this example correct:

extern far Int SDRAM;

void main(void)
{
float *p1,*p2;
p1=(float *) MEM_alloc(SDRAM,10000*sizeof(float));
p2=(float *) MEM_alloc(SDRAM,20000*sizeof(float));
}
Actually.. can allocate as much as 16MB of memory?

Thanks,

Moti.