Exemplo n.º 1
0
 public static void Main(string[] args)
 {
     using (var compiler = new Compiler())
         using (var source = LLVMSourceCode.FromFile(args[0]))
         {
             compiler.Compile(source, args[1]);
         }
 }
Exemplo n.º 2
0
        public void CanCompileLlvmIrToMsil(string testName)
        {
            var fullPath = Path.Combine(Environment.CurrentDirectory, "TestPrograms", "C", testName + ".ll");

            using (var compiler = new Compiler())
                using (var source = LLVMSourceCode.FromFile(fullPath))
                {
                    compiler.Compile(source, testName);
                }

            // TODO: Run program and compare to original C program output.
        }