|
Re: Dynamic memory MC18
To the best of my recollection, the PIC18 did not support dynamic memory allocation. You always have the option of declaring a big array at global scope and using that area as "scratch" for dynamic memory operations.
You could also dig up some EEPROM code and use that as your "dynamic" memory (Kevin Watson had written a nifty utility to read and write EEPROM). Just be aware that EEPROM is typically much slower than using the stack.
EDIT: I have checked and confirmed; the PIC does not support dynamic memory allocation.
Last edited by Jared Russell : 18-08-2009 at 16:37.
|