当前位置:   article > 正文

C programming language CSE30

C programming language CSE30
Coding requirements
1. You will write your code only in C and ARM32 (v6) and it must run in a Linux environment on the pi-cluster.
2. You may not use recursion in your code , processing must only use iterative approaches.
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: _0206girl
3. You will use the supplied Makefile to compile your program.
4. You may not add any additional #include files.
5. Be aware that we will be testing your code using the supplied .h include files. If you change any of these files (other than version.h) that your code depends on, you run the risk that your code will fail gradescope tests.
6. For the code that you write , you can only use the following C library functions. You can use any functions that are supplied with the starter code.
fread(), fwrite(), fclose(), fopen(), fprintf()
7. All assembly language functions must conform to AArch32 procedure call standards (must have the minimum stack frame and the stack must be properly 8-byte aligned - PA8).
8. Only use the ARM32 assembly instructions listed in the document:
ARM Green Card
9. Follow the
CSE30 C Style Guide
CSE30 Assembly Style Guide
10.You will not need to create any helper functions in these PA's as the functions you need to write are short in length.
11. You may copy and modify any code supplied to you, including code from lecture and discussion, and submit it as part of your work. You should not be copying code from the web or using any AI tools to write your code. Using code obtained from others is a violation of the CSE30 Academic Integrity policy and will be strongly enforced.
Get the Starter files from Github and the setup
Step 1: You need to get the starter files for PA. Login into your account on the pi-cluster and run the following command. You will develop the code on the pi-cluster. You must do the git clone on the pi-cluster.
cs30sp24@pi-cluster-153:~ % cd ~/cse30
cs30sp24@pi-cluster-153:~ % git clone https://github.com/cse30-sp24/pa7-starter.git pa7
cs30sp24@pi-cluster-153:~ % cd pa7
Step 2: Set the execute bits on runtest and the test cmd files. Note this also turns off write
permission . This is to help students who were changing these files by accident.
cs30sp24@pi-cluster-153:~ /pa7 % chmod 0555 runtest in/cmd*
S tep 3: Compile the program.
cs30sp24@pi-cluster-153:~ /pa7 % make
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/613057
推荐阅读
相关标签
  

闽ICP备14008679号