@@ -11,4 +11,9 @@ - `mktbl.posix.sh `: generates the C headers for a particular target based on the system_calls.h and error_table.h files in its directory. the ABI parameter controls which syscalls are included; the ABI is the second column in the kernel system calls table. - `mktbl.linux.errno.sh `: generates the errno table for a given architecture and ABI. requires the kernel source tree to be installed on the host system. - `mktbl.linux.syscall.sh `: generates the syscall table for a given architecture and ABI. requires the kernel source tree to be installed on the host system. note that some architectures like x86 have separate, architecture-specific tables. this script is not meant to be used with these architectures. + +## sources +the arch directory also contains C sources for programs that need to be compiled *and* executed during the build process. + +- `typesize.c`: calculates type metadata for the system it is compiled on, producing macros needed for the creation of `` (mod/kcore/type.h.m).