• malloc with variable length
    Hi, I'm using arm cortex, KEIL, FreeRTOS. The problem I met is: after many times of running the following malloc function, the heap was used out, couldn't allocat 1KB space any more. char Str =...
  • Does Keil MDK 5 supports Variable-length array (VLA)?
    Hi, I use Keil MDK 5.21 to develop Cortex-M processors. Suppose I have a function foo. void foo(uint8_t count){ uint16_t array[count]; // ... } This can be compiled. However, the code...
  • RTX-166 variable length messages
    Hello all, I'm using a VAR_SIZE message box in RTX-166. Most of my messages are short, only 2 bytes, but some are longer at 46 bytes. Reading through the manual it says that variable length messages...
  • Array length changeable during Run - Time
    Hi everyone Does someone know how to change the length of on array during the run time execution? I mean how can I request memory to use it for a array? Is there somthing like malloc()? Thanks...
  • The length of struct
    Hi, I define a struct like below: typedef struct { unsigned type :6; unsigned delete :1; unsigned mask :1; }UnitType; I think the length of this struct is 1 byte, but to my surprise,...