2019独角兽企业重金招聘Python工程师标准>>>

LuaJIT Running1.Configuring LuaJIT
The standard configuration should work fine for most installations. Usually there is no need to tweak the settings. The following files hold all user-configurable settings:src/luaconf.h sets some configuration variables.Makefile has settings for installing LuaJIT (POSIX only).src/Makefile has settings for compiling LuaJIT under POSIX, MinGW or Cygwin.src/msvcbuild.bat has settings for compiling LuaJIT with MSVC or WinSDK.tar zxf LuaJIT-2.0.2.tar.gz
cd LuaJIT-2.0.2
make PREFIX=/soft/luajit
make install PREFIX=/soft/luajitCross-compiling LuaJIT
If you want to cross-compile to any 32 bit target on an x64 OS, you need to install the multilib development package (libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part (HOST_CC="gcc -m32").
# Cross-compile to a 32 bit binary on a multilib x64 OS
make CC="gcc -m32"
# Cross-compile on Debian/Ubuntu for Windows (mingw32 package)
make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows2.Running LuaJIT
The luajit stand-alone executable is just a slightly modified version of the regular lua stand-alone executable. It supports the same basic options, too.
luajit -h prints a short list of the available options.
-b[options] input outputLuaJIT has some additional options:
-b[options] input outputThis option saves or lists bytecode. The following additional options are accepted:-l — Only list bytecode.-s — Strip debug info (this is the default).-g — Keep debug info.-n name — Set module name (default: auto-detect from input name)-t type — Set output file type (default: auto-detect from output name).-a arch — Override architecture for object files (default: native).-o os — Override OS for object files (default: native).-e chunk — Use chunk string as input.- (a single minus sign) — Use stdin as input and/or stdout as output.
The output file type is auto-detected from the extension of the output file name:c — C source file, exported bytecode data.h — C header file, static bytecode data.obj or o — Object file, exported bytecode data (OS- and architecture-specific).raw or any other extension — Raw bytecode file (portable).Typical usage examples:
luajit -b test.lua test.out                 # Save bytecode to test.out
luajit -bg test.lua test.out                # Keep debug info
luajit -be "print('hello world')" test.out  # Save cmdline script
luajit -bl test.lua                         # List to stdout
luajit -bl test.lua test.txt                # List to test.txt
luajit -ble "print('hello world')"          # List cmdline script
luajit -b test.lua test.obj                 # Generate object file
# Link test.obj with your application and load it with require("test")-j cmd[=arg[,arg...]]
Here are the available LuaJIT control commands:-jon — Turns the JIT compiler on (default).-joff — Turns the JIT compiler off (only use the interpreter).-jflush — Flushes the whole cache of compiled code.-jv — Shows verbose information about the progress of the JIT compiler.-jdump — Dumps the code and structures used in various compiler stages.
The -jv and -jdump commands are extension modules written in Lua. They are mainly used for debugging the JIT compiler itself.

转载于:https://my.oschina.net/u/1449160/blog/199762

luajit日记-配置说明相关推荐

  1. luajit日记-FFI库

    2019独角兽企业重金招聘Python工程师标准>>> LuaJIT FFI LibraryThe FFI library allows calling external C fun ...

  2. puppet成长日记二 Package资源详细介绍及案例分析

    puppet成长日记二 Package资源详细介绍及案例分析 一.系统环境 1.puppet服务端 Release:RHEL6.4 HOSTNAME: puppetserver.rsyslog.org ...

  3. php任务进程中的配置文件_PHP进程管理器php-fpm配置说明

    php-fpm是什么 php-fpm是PHP的一个进程管理器.php下面的众多work进程皆有php-fpm进程管理器管理.具体可参考:http://www.qqdeveloper.com/20... ...

  4. 《帝企鹅日记》观后感

    第一次看到是在高中的英语周报上,那时候蛮好奇的,企鹅也写日记,呵呵,后来想了想应该是纪录片,时隔三年,发现当初的猜测果然不假. 我觉得那些企鹅很可爱,也很漂亮.最重要的是,那一条条小生命有着顽强的毅力 ...

  5. linux kvm虚拟化命令,Linux系统下kvm虚拟化(三)日常管理常用命令和配置说明

    根据我们之前创建和一些操作可以知道,KVM虚拟机的管理主要是通过virsh命令对环境下kvm虚拟机进行管理,下边这里整理一些常用的配置说明以及如何进行日常管理维护. 1,查看KVM虚拟机配置文件 KV ...

  6. axure 模板_《惢客创业日记》2019.09.03(周二) 用Axure管理项目流程

    今天,花了一整天的时间,搭建了一个本地服务器,并且,把Axure生成的网页系统部署在了IIS上.之所以,用Axure来把整个项目的资源做一个汇总,主要目的有三个: 第一.用Axure实现基于网页的项目 ...

  7. 在CentOS 6.x上安装luajit 2.0.4

    luajit只能从源码包安装.从官网 http://luajit.org/ 下载相应的源码包 ats 4.2.3淘宝版中是luajit2.0,所以我们现在相应的版本安装 http://luajit.o ...

  8. [UWP小白日记-10]程序启动屏(ios解锁既视感)

    [UWP小白日记-10]程序启动屏(ios解锁既视感) 原文:[UWP小白日记-10]程序启动屏(ios解锁既视感) 讲一下 微软爸爸的开发者大会2016又暴了个表达式动画和Windows.UI.Co ...

  9. 我先了解一下博客园创建随笔/文章/日记的过程与三者的区别(隐私等级,是否审核等)...

    我先了解一下博客园创建随笔/文章/日记的过程与三者的区别(隐私等级,是否审核等) 转载于:https://www.cnblogs.com/Totooria-Hyperion/p/5260289.htm ...

  10. 在windows程序中嵌入Lua脚本引擎--使用VS IDE编译Luajit脚本引擎

    前些天听到一个需求:某业务方需要我们帮忙清理用户电脑上的一些废弃文件.同事完成这个逻辑的方案便是在我们程序中加入了一个很"独立"的业务逻辑:检索和删除某个程序产生的废弃文件.试想, ...

最新文章

  1. 在webstorm里面添加自定义web browsers的方法
  2. 计算机组成原理译码器选择,计算机组成原理第三章习题参考解析.doc
  3. Python爬虫入门教程 14-100 All IT eBooks多线程爬取
  4. 不能从远程创建com+对象_红蓝对抗攻防实战:寻找COM对象
  5. 用循环语句求2^0+2^1+........+2^63 (C语言)
  6. 怎样手动给无线网设置一个DNS服务器地址,无线网的dns怎样设置.docx
  7. 前端代码异常日志收集与监控
  8. JS的内建函数reduce
  9. 计算机图形学(一)——数据压缩:道格拉斯普克法
  10. 【win】全屏、窗口化、动态修改分辨率和获取屏幕支持的所有分辨率
  11. 西南科技大学OJ题 交换排序算法的设计与实现——冒泡排序1014
  12. 《计算机建筑绘图》在线考试,《建筑制图与识图》在线开放课程开讲了
  13. AAU,BBU,RRU区分与功能
  14. 无支付牌照的电商平台“二清”通病问题需彻底根治
  15. Java产品:CRM客户关系管理系统
  16. 互联网摸鱼日报(2022-12-21)
  17. 计算机硬盘是什么材质的好,电脑硬盘长什么样子_电脑硬盘什么样的好
  18. WEB 视频开发-强大的MSE
  19. 预制资源(Prefab)
  20. R语言_函数的使用_rep

热门文章

  1. 使用Octave绘制正玄余玄函数
  2. 牛客小白月赛31——补题记
  3. thinkphp html里使用c u,原来C可以这么用 Thinkphp C
  4. 是的,我开始做这么一件事了
  5. 安装php项目后图片路径不对,解决织梦CMS栏目绑定二级域名后图片不显示,路径错误办法...
  6. cad无法修复图形文件_CAD应用技巧:DWG图形的“瘦身”
  7. 曙光服务器怎么进入bios_曙光服务器怎么进入bios
  8. c4d序列号_(图文+视频)野分享:手把手教你免费获取Megascans所有资产并应用于C4D...
  9. 帆软图表切换接口和图标轮播接口
  10. sqlserver功能选择_即将开课 | SQL Server 开发课程