从头开始创建 XS 模块的现代方法是什么? [英] What is the modern way of creating an XS module from scratch?

查看:56
本文介绍了从头开始创建 XS 模块的现代方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为 Perl 编写一个 XS 模块.我的理解是 h2xs 今天几乎已被弃用,今天启动 XS 模块的首选方法是什么?我查看了 Module::Starter,但它只处理纯 Perl 模块.

I need to write an XS module for Perl. It is my understanding that h2xs is pretty much deprecated today, what is the preferred method for starting an XS module today? I looked at Module::Starter, but it only handles pure Perl modules.

推荐答案

不,h2xs 没有被弃用.如果您创建许多纯 Perl 模块,Module::Starter 肯定会更方便,但没有理由避免使用 h2xs.不过,我建议在使用它之前通读一遍它的文档,这样你就知道你可能希望它做什么或不做什么.

No, h2xs is not deprecated. Module::Starter is certainly more convenient if you create many pure Perl modules, but there's no reason to avoid h2xs. I would recommend reading all the way through its doc before using it, though, so that you know what all you might want it to do or not do.

这篇关于从头开始创建 XS 模块的现代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆