Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interoperability

After this chapter you can call a C library from Structured Text, and call what this compiler built from C.

It covers how to declare a function that lives in a C library, the variadic forms included, and what every construct of the language becomes on the C side, down to the layout of a function block and the names of the constructors that the compiler generates. It then shows how to let the compiler write the C headers of a project instead of writing them by hand. At the end it gives the rules that make an interface which other people can work with.