CompuServe Messages

#Memory Use

    04-Dec-89 00:36:13
Sb: #Memory Use
Fm: Syndesis 76004,1763
To: All
I'm working on a programming article for AmigaWorld, about allocating memory in C. Does anyone know the size of the memory blocks used in Lattice's sbrk() function? This is the Level 1 memory allocation function that gets memory from AmigaDOS, for management by the malloc() and free() calls. I know Manx's heapsize is 40K, and they have a _Heapsize long that you can set to adjust it. Does Lattice have a similar facility? Does Lattice sell the source code to their libraries? Having Manx's code was very useful for understanding these functions. Lattice's 4.0 manual does describe sbrk() and rbrk(), but it doesn't tell the size of the heap. Second, if I had a system with three autoconfig 2 meg boards, I wouldn't be able to AllocMem() a contiguous 3 meg hunk, until I ran the MergeMem utility? In other words, AmigaDOS does not merge memory boards together.