KasperskyOS Community Edition 1.3

Cross compilers

The toolchain provided in the KasperskyOS SDK includes one or more Clang compilers and a rustc compiler. The toolchain/bin directory contains the following files:

  • Executable files of compilers (for example, clang-17 or rustc)
  • Executable files of linkers (for example, aarch64-kos-ld)
  • Executable files of assemblers (for example, aarch64-kos-as)
  • Bash scripts for the Clang compiler (for example, aarch64-kos-clang, aarch64-kos-clang++)

Linker operation specifics

When building the executable file of an application, by default the linker links the following libraries in the specified order:

  1. libc is the standard C library.
  2. libm is the library that implements the mathematical functions of the standard C language library.
  3. libvfs_stubs is the library that contains stubs of I/O functions (for example, open, socket, read, write).
  4. libkos is the library for accessing the KasperskyOS core endpoints.
  5. libenv is the library of the subsystem for configuring the environment of applications (environment variables, arguments of the main function, and custom configurations).
  6. libsrvtransport-u is the library that supports IPC between processes and the kernel.