📄 readme
字号:
The CS:APP Data LabDirections to StudentsYour goal is to modify your copy of bits.c so that it passes all thetests in btest without violating any of the coding guidelines.***********************************************************1. Modifying bits.c and checking it for compliance with dlc***********************************************************Carefully read the instructions in the bits.c file before youstart. These give the coding rules that you will need to follow if youwant full credit. Use the dlc compiler (./dlc) to automatically check your version ofbits.c for compliance with the rules: unix> ./dlc bits.cdlc returns silently if there are no problems with your code.Otherwise it prints messages that flag any problems. Once you have alegal solution, you can test it for correctness using the ./btestprogram.*************************************2. Testing for correctness with btest*************************************The Makefile in this directory compiles your version of bits.c withadditional code to create a program (or test harness) named btest.Give the command: unix> make btestto compile the code.Run the program with the command: unix> ./btest [optional command line arguments]When moving from one platform to another, you want to get rid of theold version of btest and generate a new one. Use the commands: unix> make clean unix> make btest*******************3. What btest does*******************Btest tests your procedures for correctness by running a number of testcases. It does not guarantee exhaustive evaluation. In addition, it doesnot check your code for compliance with the coding guidelines. Use dlc todo that.If you think the functions provided in btest are incorrect send mailto the lead person for this assignment.Here are the command line options for btest: -e N Limit number of errors to report for single function to N (Default unbounded) -f Name Check only the named function -g Prints concise report (implies -v 0 and -e 0) -h Print the list of options -v N Set verbosity to level N N=0 Only give final scores N=1 Also report individual correctness scores (default)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -