If your doing firmware you probably shouldn't be doing much memory allocation at runtime anyway to prevent memory fragmentation.