How would you manage pointers, dynamic allocation, and static allocation in constrained environments?