UEFI, the full name of Unified Extensible Firmware Interface, is a standard that describes a new type of interface in detail. It is a standard firmware interface for computers, which is designed to replace BIOS (basic input and output system). To learn more about UEFI, we have to start with BIOS.
The stack area is automatically allocated and released by the compiler, and stores the parameter values of functions and the values of local variables. It works like a stack in a data structure. Heaps are usually allocated and released by programmers. If the programmer does not release it, it may be reclaimed by the OS at the end of the program.