User Tools

Site Tools


haas:fall2018:cprog:projects:dtr0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:fall2018:cprog:projects:dtr0 [2018/02/02 18:42] – external edit 127.0.0.1haas:fall2018:cprog:projects:dtr0 [2018/08/19 16:10] (current) – [Submit Tool Usage] wedge
Line 141: Line 141:
  
 <cli> <cli>
-lab46:~/src/cprog/proj$ gcc -Wall --std=c99 -o hello hello.c+lab46:~/src/cprog/proj$ gcc -Wall --std=gnu99 -o hello hello.c
 lab46:~/src/cprog/proj$  lab46:~/src/cprog/proj$ 
 </cli> </cli>
Line 150: Line 150:
  
 <code> <code>
-gcc -Wall --std=c99 -o BINARY_FILE SOURCE_FILE+gcc -Wall --std=gnu99 -o BINARY_FILE SOURCE_FILE
 </code> </code>
  
 The BINARY_FILE comes **immediately after** the **-o**, **NOT** the SOURCE_FILE (it must never **immediately** follow a **-o**). It can precede, and such is perfectly valid (especially if you feel that way more intuitive). The BINARY_FILE comes **immediately after** the **-o**, **NOT** the SOURCE_FILE (it must never **immediately** follow a **-o**). It can precede, and such is perfectly valid (especially if you feel that way more intuitive).
  
-The **-Wall** (treat all warnings as errors, increase general verbosity about warnings) and **--std=c99** (switch compiler to use the **C99** standard of the C language) are options given to the compiler.+The **-Wall** (treat all warnings as errors, increase general verbosity about warnings) and **--std=gnu99** (switch compiler to use the **C99** standard of the C language with GNU compiler extensions) are options given to the compiler.
  
 To execute your binary, we need to specify a path to it, so we use **./**, which references the current directory (the dot '.' tells the computer "my current location", and the forward slash '/' is the directory separator): To execute your binary, we need to specify a path to it, so we use **./**, which references the current directory (the dot '.' tells the computer "my current location", and the forward slash '/' is the directory separator):
Line 172: Line 172:
     * Early submissions can earn 1 bonus point per day in advance of the posted due date.     * Early submissions can earn 1 bonus point per day in advance of the posted due date.
   * All code must compile cleanly (no warnings or errors)   * All code must compile cleanly (no warnings or errors)
-    * Use the **-Wall** and **--std=c99** flags when compiling.+    * Use the **-Wall** and **--std=gnu99** flags when compiling.
     * all requested functions must be implemented in the related library or program     * all requested functions must be implemented in the related library or program
     * all requested functionality must conform to stated requirements (either on this project page or in comment banner in source code files themselves).     * all requested functionality must conform to stated requirements (either on this project page or in comment banner in source code files themselves).
Line 218: Line 218:
 *:dtr0:no compiler warnings nor errors for dtr0.c [4/4] *:dtr0:no compiler warnings nor errors for dtr0.c [4/4]
 </code> </code>
 +
 +Additionally:
 +  * Solutions not abiding by spirit of project will be subject to a 25% overall deduction
 +  * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction
 +  * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction
 +  * Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction
haas/fall2018/cprog/projects/dtr0.1517596950.txt.gz · Last modified: 2018/02/02 18:42 by 127.0.0.1