Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

确定编译器的基本接口 #13

Open
fazdzz opened this issue Dec 25, 2019 · 0 comments
Open

确定编译器的基本接口 #13

fazdzz opened this issue Dec 25, 2019 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@fazdzz
Copy link
Contributor

fazdzz commented Dec 25, 2019

根据第一周的检查情况,有小半编译器存在以下不太合理的情况:

  • 可选参数与规范不同,使得本应是自动的评测脚本被迫变为半自动
  • 编译器遇到编译错误时依然 return 0,或未将错误信息置于标准错误流
  • 无视编译器应当具有的最基本的报错能力,
  • 无视编译器的鲁棒性,放任各种 exception 炸程序
  • 在 release 版本通过标准输出流打印各种中间结果

这些不规范不仅给当前的半人力评测带来了极大的阻碍,也不与今后推进自动化评测的方向不符

考虑到课程在上面提及的一些地方并没有提出对应的要求,建议在本学期结束后对编译器的功能接口、返回行为与错误报告进行基本的约束,对使用不同语言编写的得到的可执行程序形式不同的编译器在运行方式上进行约束。

同时要注意可选参数和位置参数的普遍约定,相关issue: #9

@fazdzz fazdzz pinned this issue Dec 25, 2019
@fazdzz fazdzz added the documentation Improvements or additions to documentation label Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant