Properties of KasperskyOS cross compilers
The cross compilers included in KasperskyOS Community Edition support processors that have the aarch64
architecture.
The KasperskyOS Community Edition toolchain includes the following tools for cross compilation:
aarch64-kos-gcc
aarch64-kos-g++
aarch64-kos-as
aarch64-kos-ld
In addition to standard macros, an additional macro __KOS__=1
is defined in GCC. Using this macro lets you simplify porting of the software code to KasperskyOS, and also simplifies development of platform-independent applications.
To view the list of standard macros of GCC, run the following command:
echo '' | aarch64-kos-gcc -dM -E -
Linker operation specifics
When building the executable file of an application, by default the linker links the following libraries in the specified order:
open
, socket
, read
, write
).main
function, and custom configurations).