Integration with Other Languages
Knowing how to write a C program or library can be more valuable than you might expect. Due to the important role of C in developing operating systems, C is not limited to its own world. C libraries have the potential to be loaded and used in other programming languages as well. While you are reaping the benefits of writing code in a higher-level programming language, you can have the rocket power of C as a loaded library inside your language environment.
In this chapter we are going to talk more about this, and demonstrate how C shared libraries can be integrated with some well-known programming languages.
In this chapter, we will cover the following key topics:
- We discuss why integration is possible in the first place. The discussion is important because it gives you the basic idea of how integration works.
- We design a C stack library. We build it as a shared object file. This shared object file is going to be used by a number...