Compilation principle and operating system - first adaptation algorithm (C language)