NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char GetMemoryInfo ( bool  Compact,
unsigned int &  PoolSize,
unsigned int &  DataspaceSize 
)
inline

Read memory information.

Read the current pool size and dataspace size. Optionally compact the dataspace before returning the information. Running programs have a maximum of 32k bytes of memory available. The amount of free RAM can be calculated by subtracting the value returned by this function from POOL_MAX_SIZE.

Warning
This function requires the enhanced NBC/NXC firmware version 1.28+.
Parameters
CompactA boolean value indicating whether to compact the dataspace or not.
PoolSizeThe current pool size.
DataspaceSizeThe current dataspace size.
Returns
The function call result. It will be NO_ERR if the compact operation is not performed. Otherwise it will be the result of the compact operation.
Examples:
ex_getmemoryinfo.nxc.