- 浏览: 571713 次
- 性别:
- 来自: 广州杭州
文章分类
最新评论
-
bohc:
谢谢,搞了两天了,现在才算是找到问题所在,解决了。
文件在使用FileChannel.map后不能被删除(Windows上) -
zhang0000jun:
在jdk1.8中执行正好和楼主的结果相反,请指教
从Java视角理解CPU缓存(CPU Cache) -
在世界的中心呼喚愛:
forenroll 写道请问楼主的那个分析工具cachemis ...
从Java视角理解CPU缓存(CPU Cache) -
xgj1988:
我这里打出的结果是: 0 L1-dcache-load-mis ...
从Java视角理解CPU缓存(CPU Cache) -
thebye85:
请教下大神,为什么频繁的park会导致大量context sw ...
从Java视角理解CPU上下文切换(Context Switch)
erlc
命令
概要
描述
The erlc
program provides a common way to run all compilers in the Erlang system. Depending on the extension of each input file, erlc
will invoke the appropriate compiler. Regardless of which compiler is used, the same flags are used to provide parameters such as include paths and output directory.
erlc提供了一个公共的途径来运行Erlang系统的所有编译器.
erlc
会根据于各输入文件的扩展名,来调用合适的编译器.你无须关心哪个编译器被使用了.它们都使用相同的参数,例如include路径和输出目录.
输出
Erlc
compiles one or more files. The files must include the extension, for example .erl
for Erlang source code, or .yrl
for Yecc source code. Erlc
uses the extension to invoke the correct compiler.
Erlc编译一个或一个以上文件.文件必须包括它们的扩展名.例如.erl代表Erlang源代码,而.yrl代表Yecc源代码.Erlc用扩展名来调用正确的编译器.
一般的有用标记
The following flags are supported:
下面的标记都支持:
-include
or -include_dir
directive, the compiler searches for header files in the following directories:指示编译器在指定的目录去查找include文件.编译器每碰到一个
-include或
-include_dir
标记, 就会在其后指定的目录中查找头文件.
-
"."
, the current working directory of the file server;
"."
, 当前工作目录
- the base name of the compiled file;
- the directories specified using the
-I
option. The directory specified last is searched first.
-I
选项指定目录, 最后指定的目录,却最先被查找.
编译器输出文件的目录.如果没定义,输出文件将放置在当前工作目录.
定义一条宏.
定义一条拥有给定值的宏. 这个值可以是任意Erlang项.根据平台,如果shell自身会解释特定的字符,这个值可能需要用引号标注.在Unix中, 包含元组和list的项必须用引号标注. 有空格的项在所有平台,都得用引号标注.
1
. Use -W0
to turn off warnings. 将警告级别定义为number级. 默认为
1. 用
-W0
关闭警告. -W1
. Default. 和
-W1意义一样.默认的.
打开详细输出
指定输入文件类型.一般output-type 如果输出类型只有一种,这个选项就会被忽略.
用混合堆模拟器编译. 这对于编译原生代码很有用,同时还需要编译此原生代码能运行的运行时系统.
用SMP模拟器编译. 这对于编译原生代码很有用,同时还需要编译此原生代码能运行的运行时系统.
告诉编译器之后没有选项了.它之后的参数全被当作文件名,尽管以连字符开头也一样. (译注, 连字符-后面一般是编译器选项,但定义了这个之后,就不是选项了)
export_all
option for the Erlang compiler can be specified as follows: 一个以加号 ('+')开头而不是连字符开头的选项,会被转义成一个Erlang项,且被原样传入编译器. 例如, Erlang 编译器的
export_all
选项可以写成如下形式:
Depending on the platform, the value may need to be quoted if the shell itself interprets certain characters. On Unix, terms which contain tuples and list must be quoted. Terms which contain spaces must be quoted on all platforms.代码
- erlc +export_all file.erl
根据平台,如果shell自身会解释特定的字符,这个值可能需要用引号标注.在Unix中, 包含元组和list的项必须用引号标注. 有空格的项在所有平台,都得用引号标注.
特殊标记
The flags in this section are useful in special situations such as re-building the OTP system.
此节的标记在特殊情况下有用,比如重编译OTP系统.
支持的编译器
.beam
file. The options -P, -E, and -S are equivalent to +'P', +'E', and +'S', except that it is not necessary to include the single quotes to protect them from the shell.
Supported options: -I, -o, -D, -v, -W, -b.
Erlang源文件.生成
.beam
文件..erl
file. Use the -I option with the name of a file to use that file as a customized prologue file (the
includefile
option). Supported options: -o, -v, -I, -W (see above).
.bin
file. Supported options: -I, -o, -W.
.hrl
file. Supported options: -o, -v.
Use the -I to name directories to be searched for application files (equivalent to the
path
in the option list for systools:make_script/2
). Supported options: -o.
脚本文件. 生成boot 文件.
Creates an
.erl
, .hrl
, and .asn1db
file from an .asn1
file. Also compiles the .erl
using the Erlang compiler unless the +noobj
options is given.Supported options: -I, -o, -b, -W.
Runs the IDL compiler.
Supported options: -I, -o.
环境变量
启动模拟器的命令. 默认erl与erlc程序在同一目录, 如果此环境变量不存在, erl在PATH环境变量给出的一个目录中.
另见
erl(1), compile(3), yecc(3), snmp(3)
发表评论
-
ubuntu安装otp R11B 的一些记录
2007-11-16 12:30 2777新的ubuntu系统会缺少一些工具 和lib. 用apt-ge ... -
emulator调试日志: driver篇
2007-10-08 16:35 2273--------- driver篇 ------------- ... -
修正Programming Erlang中linked driver实例的小问题
2007-10-08 14:50 2443也许很多人碰上过, 用example1_lid:sta ... -
emulator调试日志: port篇
2007-10-06 16:14 2368------------------ port 篇 ----- ... -
supervisor一小技巧
2007-09-04 13:20 1773simple_one_for_one可以让supervisor ... -
gen_server
2007-08-29 21:52 1895State用来存数据, 任何erlang term都行 ge ... -
application
2007-08-29 02:01 1714用pman 可以看出application controlle ... -
epmd源码学习
2007-07-26 10:14 1997注: 此处节点是指分布式中分布在各终端的点, 而结点是指存在数 ... -
Tracing和dbg
2007-07-15 21:49 2529代码不必用特殊的标记(比如debug_info)来编译,也可以 ... -
ets,dets与大数据存储
2007-07-15 12:49 4928ets与dets都是用来存大数据的机制 ets是Erl ... -
用telnet来与ejabberd交互
2007-07-11 15:41 3193看了一篇文章,觉得用telnet来调试ejabberd也是一种 ... -
ejabberd管理页面和客户端
2007-07-11 00:23 9717转战到97机器。在ejabber.config加上这么一行. ... -
ejabberd在linux平台的安装与配置
2007-07-05 21:17 11918这些天捣鼓了下ejabberd,准备研究它的代码,做为榜样~ ... -
mnesia相关笔记
2007-06-29 12:17 2308当前版本OTP 5.5的mensia建表的表名可以和记录名不一 ... -
OTP设计原则:应用
2007-06-27 00:32 19017 Applications This chapter sh ... -
erlang网络编程的几个性能调优和注意点
2007-06-26 09:56 17843前些天给echo_server写了 ... -
echo_server
2007-06-23 14:45 2434代码 -module(echo_server ... -
OTP设计原则:Supervisor行为
2007-06-22 12:15 27015 Supervisor Behaviour This s ... -
OTP设计原则:Gen_Event 行为
2007-06-22 11:59 19824 Gen_Event 行为 这一章应该与gen_event ... -
OTP设计原则:Gen_Fsm 行为
2007-06-22 11:56 27063 Gen_Fsm 行为 This chapter shou ...
相关推荐
崇高的梦想 这对棉短绒插件提供了一个接口 。 它将与具有Erlang或Erlang Improved... 一旦安装并配置了erlc ,您可以继续安装SublimeLinter-contrib-erlc插件(如果尚未安装)。 插件安装 请使用安装linter插件。 这
最近项目需要使用PyQt5进行GUI开发,而与PyQt配合最为默契、最能够提高开发效率的就非Eric6莫属。目前Eric6的最新版本可以从官网免费下载,但与之相配的中文版却在17年12月之后便停止了更新,而且前一段时间官方也将...
如果您正在使用 Make 并且您有一个配置变量来指定要使用的 erlc,例如: ERLC=/path/to/erlc那么你应该能够简单地插入这个脚本,以便在你所有的 .erl 文件上运行它: ERLC=/path/to/erl_unused_includes.sh /path/...
load ( "@bazel-erlang//:bazel_erlang_lib.bzl" , "bazel_erlang_lib" , "erlang_lib" , "erlc" ) load ( "@bazel-erlang//:ct.bzl" , "ct_suite" ) APP_NAME = "my_cool_app" APP_VERSION = " 0.1 . 0 erlang_lib ...
erlc *.erl; 脚本服务器.erl ##启动客户端 在源文件夹中创建客户端文件夹。 更改 config.hrl 中的 HOST 宏。 (设置你的服务器ip地址) erlc *.erl; 脚本客户端.erl ##DOWNLOAD 下载文件名(带扩展名) ##...
erlc for Erlang(需要安装language-erlang包) 特征 与 Atom 无缝集成,就好像它是一个内置包一样。 代码突出显示 – 您无需将视线从代码上移开即可查看违规情况。 干净的用户界面 - 它尊重您最喜欢的 Atom ...
erlyberly正在寻找参与者,特别是如果您想编写Java代码。 看看问题或在 ping我。犯规 erlyberly是使用erlang跟踪的erlang, 和LFE调试器... 您将需要在路径上erlc(二郎编译器)和JDK 8u20或更高版本安装到erlyberly运
Ejabberd 模块在用户... erlc -I /lib/ejabberd/include/ -pa ~/ejabberd/deps/lager/ebin/ mod_http_offline.erl 将 .beam 文件移动到 ejabberd ebin 文件夹: sudo mv mod_http_offline.beam /lib/ejabberd/ebin
ATC872概述ATC872 是一个多频道聊天服务器。 用户通过网络浏览器访问 ATC872,以便在对话频道中关注、贡献和搜索。 ATC872 是使用 Erlang ( ) 构建的,旨在跨多... 编译atc872.erl: erlc atc872.erl 设置 Erlang 的 Mn
erlc -I $ {EJABBERD_SRC} mod_stanza_ack.erl {EJABBERD_SRC}必须替换为ejabberd源文件的实际位置,例如/ home / foobar / ejabberd / src。 可以在找到此文件夹的示例。 使用以下命令将已编译的.beam文件移动到...
安装说明首先,我们需要通过运行以下命令将此.erl文件编译为.beam文件: erlc -I $ {EJABBERD_SRC} mod_last_seen.erl {EJABBERD_SRC}必须替换为ejabberd源文件的实际位置,例如/ home / foobar / ejabberd / src。...
形式 一个简化使用。 上提供了。 如果您想进一步了解forms可以为您做什么,请检查以下... 需要注意的是,为了能够获取一个束文件的AST Erlang的二进制文件必须已经使用编译debug_info选项(例如, erlc -o ebin +de
π-erl:在 Erlang 中建模的异步 pi 演算 欢迎! 可能你在谷歌上搜索/duckduckgo'ed/搜索(希望不是bing'ed)类似“pi-calculus erlang”的东西,也许你甚至不确定你在找什么。... erlc -o ebin/ src/*.
erlc( )是构建AtomVM所必需的 运行标准BEAM文件(不带未压缩文字扩展名)时,可选地需要zlib( )。 可选地需要使用gcov和lcov来生成覆盖率报告(进行覆盖)。 可选用doxygen生成文档(制作doc)。 支持平台 ...
erlang-html5-chatroom 一个聊天室demo,用来测试html5 websocket 和 erlang 的通信 服务端 编译: cd server erlc *.erl 运行: erl 1>chatroom:start(9000).
sonic_pi_interface 声波接口要运行这个手动编译 sonic.erl erlc sonic.erl 然后编译erlang-osc-master cd erlang-osc-master make 启动 sonic pi 并发出命令./run.sh
springboot集成MariaDB以及阿里druid线程池,通过公共Mapper工具自动生成表所对应的xml,pojo,dao文件,从而简化大量的sql文件编写以及节省工作量。
SpringBoot项目生成war包
docker desktop for windows安装包+wsl_update_x64 linux内核更新包
自定义SpringBoot启动图片banner -- 佛祖保佑 永不宕机 永无BUG