Libra命令行手册

在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器

dev compile - 编译MOVE程序

使用dev compile命令编译一个MOVE程序。

命令原型

dev compile|c <sender_account_address>|<sender_account_ref_id> 
              <file_path> 
              <module|script> 
              [output_file_path (compile into tmp file by default)]

命令行参数:

  • sender_account_address|sender_account_ref_id:发送账号
  • module|script:区分是MOVE模块还是脚本
  • file_path:采用IR编写的MOVE程序源文件路径
  • output_file_path:编译结果文件路径,可选

示例代码

下面的代码使用dev compile命令编译./demo.mvir程序,使用0#账号, 结果存入./demo.bin:

libra% dev compile 0 module ./demo.mvir ./demo.bin

得到类似如下的结果:

Successfully compiled a program at ./demo.bin