Forums » Programming with the ECS » Intermediate Code »
Can i use the ECS as a library in my own language?
Added by Axel G over 1 year ago
Hi, i was looking for some LLVM-like things and found this, but i dont see how to make a frontend
thank you very much!
Replies (3)
RE: Can i use the ECS as a library in my own language? - Added by Florian Negele over 1 year ago
A good starting point for studying the source code is the file tools/compiler.cpp
which is the main driver of all compilers and contains all front-ends and back-ends and shows how each of them generates and processes intermediate code. All of the included headers are designed to be usable as a library, you just need to include the corresponding source files in your project. Let me know if you need more specific help.
RE: Can i use the ECS as a library in my own language? - Added by Axel G over 1 year ago
What would be a simple "Hello world" be in Intermediate Code?
Like:
#include <stdio>
int main (i)
{
printf("Hello, world.");
return 0;
}
RE: Can i use the ECS as a library in my own language? - Added by Florian Negele over 1 year ago
The sandbox features several online tools that process or generate intermediate code: