4 ms·
You have to be able to export a binary interface of some sort to be able to write operating system components. As Zig is intended for system programming, the Zi
by KerrAvon 4y ago
You have to be able to export a binary interface of some sort to be able to write operating system components. As Zig is intended for system programming, the Zig implementers will surely figure this out eventually.
- pjmlp 4y agoThey only have to look into how Ada has figured it out for 40 years ago.
- generichuman 4y agoDoes Ada have a stable ABI? Do you have to distribute an interface document like a header file with your binary libraries? I'm curious how they solved generics in libraries. Can't find anything in the documentation, but maybe I'm looking in the wrong place.
- pjmlp 4y agoNo it doesn't, it is just like most compiled languages, the ABI is the compiler version. Ada packages, just like most module based languages have the necessary metadata on the libraries themselves, no need for header files. Just like C doesn't have a stable ABI per se, there is some overlap with code produced by C compilers with the OS ABI, when the OS happens to be written in C, and that is about it.