P5-inlinex-c2xs

Jul 20, 2023

Perl module to create an XS file from an Inline C file

InlineXC2XS - create an XS file from an Inline C file.

The C file that InlineXC2XS needs to find would contain only the C code.

InlineXC2XS looks for the file in ./src directory - expecting that the filename will be the same as what appears after the final ‘’ in the module name with a ‘.c’ extension. ie if the module is called MyNextMod it looks for a file ./src/Mod.c, and creates a file named Mod.xs. Also created, is the file ‘INLINE.h’ - but only if that file is needed. The generated xs file and INLINE.h will be written to the cwd unless a third argument specifying a valid directory is provided to the c2xs function.

The created XS file, when packaged with the ‘.pm’ file, an appropriate ‘Makefile.PL’, and ‘INLINE.h’ if it’s needed, can be used to build the module in the usual way - without any dependence upon the InlineC module.



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler