News

I've got a problem with some C we are working on (embedded systems), right now we have a huge 2D array that works fine, it looks like this t_ourStructType *Array; Array = _mem_alloc(sizeof ...
BR><BR>My understanding is that I need to use malloc in dynamically store the descriptions as they are entered. As strings (array of chars right?) need to have \0 at the end to signify the end of ...
However, I am concerned about the embedded development context. There are a number of reasons why malloc() is not generally recommended for embedded applications: The function is commonly not ...
The latter, in turn, is divided into heap space, where malloc()'d memory comes from, and stack, where functions' temporary work space is placed. As Figure 1 shows, heap space grows upward, whereas ...