What are the stack and heap set in the GCC linker script used for?

So if I am not using dynamic memory in my startup functions and for my tasks can this be set to 0?