C::Blocks Advent Calendar 2016
Perl is great, but sometimes I find myself reaching for C to do some of my computational heavy lifting. There are many tools that help you interface Perl and C. This module differs from most others out there by providing a way of inserting your C code directly where you want it called, rather than hooking up a function to C code written elsewhere. This module was also designed from the outset with an emphasis on easily sharing C functions and data structures spread across various packages and source files. Most importantly, the C code you see in your script and your modules is the C code that gets executed when your run your script. It gets compiled by the extremely fast Tiny C Compiler at script parse time.
- Weaving procedural C code into your Perl code
- How to get data across the boundary between Perl and C
- How to get information across the boundary between Perl and C
- How to declare and share C functions
- Benchmarks
- Generating and modifying code
- Pointers and data structures
- Controling access to pointers
- The details of writing a type for C::Blocks
- How to use C::Blocks in multithreaded Perl code
See also C::Blocks