2 ms·
This is used for constructor & destructor functions in C code. The function pointers get put in an array in a certain section which is collated then the startup
by clort 6y ago
This is used for constructor & destructor functions in C code. The function pointers get put in an array in a certain section which is collated then the startup and exit code calls them. Ordering is not guaranteed.
- saagarjha 6y agoNote that the ordering that the constructors and destructors will be run once the binary has been constructed is guaranteed by your C runtime.