LLVMSharp icon indicating copy to clipboard operation
LLVMSharp copied to clipboard

Print and read input functions with LLVMSharp

Open michalchecinski opened this issue 5 years ago • 1 comments

I write compiler for my own language using LLVMSharp. Currently I want to make print to standard output and read from standard input.

I tried looking into other projects but found nothing. One thing that I came up with is using printf from C or other language. But I don't know how to embed stdio.h

michalchecinski avatar Apr 15 '20 17:04 michalchecinski

I created a sample calling C# Console.WriteLine and Console.ReadLine from LLVM IR.

https://github.com/davidelettieri/LLVMSharp.Samples

davidelettieri avatar Feb 28 '23 18:02 davidelettieri