Skip to content

Compiler

Aman Priyadarshi edited this page Mar 9, 2017 · 7 revisions

Atom Compiler works on top of other available C# compiler like .NET or Mono. Core work like parsing language and converting it to corresponding CIL is done by these 3rd party compilers. Customer compiler built by us work on emitted CIL and generate target platform specific native assembly code. This assembly file is assembled by NAsm and Object code is generated which then linked to other libraries to produce final ELF image of kernel.

Compiler Diagram

How to Invoke Atomix Compiler?

You need to build Atomixilc project first. After this compiler's executable binary will be available in /Bin directory.

Command Line

   Atomixilc.exe -cpu x86 -i Atomix.Kernel_H.dll -o Kernel.asm -v -optimize
  • -cpu : Only x86 supported. Other values x64, ARM
  • -i : Comma Separated Input Assemblies
  • -o : Output Assembly file name
  • -v : Verbose Output
  • -optimize : Invoke Optimizer check Build.sh
Clone this wiki locally