As a pet project, I am writing my own programming language and trying to compile to LLVM IR.
After seeing a few tutorials and examples, I got a bit used to how it works, but there is still one things I am not so certain of.
In the examples, most used
declare i32 @puts(i8* nocapture) nounwind
to write to the console. I think they are called native methods, but googling doesnt really help me out here.
However, I want to have more functions like this, like for example reading data from the console, or file i/o or whatever.
Where can I find a list of all the functions I can use (like puts)?
Also, are these functions platform specific? do I need other functions based on which operating system I am building to?