1. 运行configure
2. 将你的bifs添加至erts/emulator/beam/bif.tab
bif re:grep/2 bif re:compile/1
3. 创建一个C代码文件
erts/emulator/beam/erl_bif_re.c
4.将你的C代码文件添加至erts/emulator/
RUN_OBJS = $(OBJDIR)/erl_bif_re.o \
5. implement your bifs by stealing bits from existing erl_bif_*.c files
参考其余的erl_bif_*.c文件,加入下面这段代码
6. 运行make; make install