Manual compile rustc program
# Rust -> AST -> HIR -> MIR -> IR -> Assembly -> Object -> Link -> Executable
rustc main.rs --emit=llvm-ir # clang IR
llc main.ll # Assembly
clang -c -o main.o main.s # Object file
clang main.o -o main.exe -l"C:\Users\yaako\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\std-2df1f22abef96888.dll.lib" # Executable
$env:PATH += "C:\Users\yaako\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib"
.\main.exe