NVMLib  very early alpha
A library to optimally use a Hybrid RAM setup.
algo.h File Reference
#include "globals.h"
#include "malloc.h"
Include dependency graph for algo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int decide_allocation (size_t size)
 Function to decide the initial allocation of object. More...
 

Function Documentation

◆ decide_allocation()

int decide_allocation ( size_t  size)

Function to decide the initial allocation of object.

It decides where to place the object when the programmer doesn't provide it himself.

Parameters
sizeThe size of the object being allocated.
Returns
: Either NVRAM_HEAP, DRAM_HEAP, NVRAM_STACK, DRAM_STACK

Definition at line 23 of file algo.h.