3 ms·
Thanks for this nice writeup! Small correction regarding the ELF object file format: any kind of data whatsoever can be stored in the data section, including s
by AndyKelley 4y ago
Thanks for this nice writeup!
Small correction regarding the ELF object file format: any kind of data whatsoever can be stored in the data section, including strings in the form of ptr + length without null termination. Zig string literals are null terminated in addition to having the length not because of an object file limitation but because it is useful to pass string literals to APIs that require null-termination, such as most C libraries. In practice, this simplifies the experience of using the language.
- cyber_kinetist 4y agoAh, thanks for the correction.