由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - Static library linking using Bison
相关主题
yacc/bison的调试和分析工具? (转载)计算机系的理论课到底怎么学呢
问个C++小问题有没有c 或是 c++ 的bnf 文件
推荐一个open source的c compiler求助,谁有camera calibration的源程序
yacc 求助借人气儿问个问题
表达式求值问题问一问题
YACC tables (yyact, yypact, yypgo ...) 的问题 (转载)a history question
LR(1) paser generator 的效率问题源程序
有没有做编译的大牛有什么语音朗诵的开源程序?
相关话题的讨论汇总
话题: bison话题: yacc话题: static话题: linker话题: using
进入CS版参与讨论
1 (共1页)
p****2
发帖数: 387
1
请教一个问题:请问用Bison/Yacc可以实现把Object Code加到源程序中。
譬如,Source1能引用object2.o中的函数.
h*******e
发帖数: 225
2
yacc/bison is just a source-to-source compiler. add necessary "#include"s in
the declaration section in the .yacc file.

【在 p****2 的大作中提到】
: 请教一个问题:请问用Bison/Yacc可以实现把Object Code加到源程序中。
: 譬如,Source1能引用object2.o中的函数.

p****2
发帖数: 387
3
what if the included function/file is also a source/object generated by
yacc/bison? thanks!

"#include"s in

【在 h*******e 的大作中提到】
: yacc/bison is just a source-to-source compiler. add necessary "#include"s in
: the declaration section in the .yacc file.

h*******e
发帖数: 225
4
xxx.yacc -> Yacc -> xxx.cc | xxx.h
So its basically just including another .h file.

【在 p****2 的大作中提到】
: what if the included function/file is also a source/object generated by
: yacc/bison? thanks!
:
: "#include"s in

p****2
发帖数: 387
5
Thanks for your reply!
The flex and bison together create a translator that converts source to
some kind of opcode. Now I want to have a linker links source and opcode
and generates another opcode. I am wondering whether I can create such
linker using Bison.

【在 h*******e 的大作中提到】
: xxx.yacc -> Yacc -> xxx.cc | xxx.h
: So its basically just including another .h file.

p****2
发帖数: 387
6
Actually I should ask whether it is hard to implement a linker using
Bison, or do I need to use Bison in order to implement a linker.

【在 p****2 的大作中提到】
: Thanks for your reply!
: The flex and bison together create a translator that converts source to
: some kind of opcode. Now I want to have a linker links source and opcode
: and generates another opcode. I am wondering whether I can create such
: linker using Bison.

1 (共1页)
进入CS版参与讨论
相关主题
有什么语音朗诵的开源程序?表达式求值问题
求教,急YACC tables (yyact, yypact, yypgo ...) 的问题 (转载)
别见笑:一个初级问题:如何把开源open-source的源程序导入VisLR(1) paser generator 的效率问题
问个visual studio/编译的问题有没有做编译的大牛
yacc/bison的调试和分析工具? (转载)计算机系的理论课到底怎么学呢
问个C++小问题有没有c 或是 c++ 的bnf 文件
推荐一个open source的c compiler求助,谁有camera calibration的源程序
yacc 求助借人气儿问个问题
相关话题的讨论汇总
话题: bison话题: yacc话题: static话题: linker话题: using