Is there an LLVM backend for IL code according to IEC61131-3?

574 views Asked by At

Does anybody know about a LLVM backend which outputs IL (instruction list, also known as AWL) according to IEC 61131-3?

Background: I have an algorithm written in C and want to run it on an industrial PLC, which unfortunatelly is not capable to process C code (some other PLCs are able to do). One possible way I thought of would be to compile the C code to IL, which then could be imported into the PLC.

If there is no IL backend for LLVM, what do you think: is it technically possible to write one and how much effort does this mean?

I'm new to all this stuff of LLVM and so on, but it seems for me that IL is quite similar to assembler.

0

There are 0 answers