I'm using s32DS for arm.
Hello @9860042625,
Usually, to allocate dynamically memory the malloc function is used. In the newlib library used by the S32DS, inside the malloc, the sbrk is used to check if there's still memory space available to allocate the desired variable.
Also, only as a recommendation, the S32 design studio platform 3.4 was already released (link). I will suggest taking a look at the new features like the clocks, pins, and peripheral configuration tool.
Best Regards,
Alexis Andalon