User Tools

Site Tools


haas:spring2020:cprog:projects:sof0

Differences

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

Link to this comparison view

Next revision
Previous revision
haas:spring2020:cprog:projects:sof0 [2018/08/27 18:56] – external edit 127.0.0.1haas:spring2020:cprog:projects:sof0 [2020/01/26 15:46] (current) – [Review of Compiling/Executing] wedge
Line 231: Line 231:
 </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 (the source file 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=gnu99** (switch compiler to use the **C99** standard of the C language, with GNU extensions) are options given to the compiler.+The **-Wall** (treat all warnings as errors, increase general verbosity about warnings) and **<nowiki>--std=gnu99</nowiki>** (switch compiler to use the **C99** standard of the C language, with GNU extensions) are options given to the compiler.
  
 To execute your binary, we need to specify a path to it, so we use **./**, which basically references the current directory: To execute your binary, we need to specify a path to it, so we use **./**, which basically references the current directory:
Line 247: Line 247:
  
   * Code must compile cleanly (no warnings or errors)   * Code must compile cleanly (no warnings or errors)
-    * Use the **-Wall** and **--std=c99** flags when compiling.+    * Use the **-Wall** and **<nowiki>--std=gnu99</nowiki>** flags when compiling.
   * Executed program must display a total of 2 lines, one for input, one for output.   * Executed program must display a total of 2 lines, one for input, one for output.
     * The computed number must be output to STDOUT     * The computed number must be output to STDOUT
Line 267: Line 267:
  
 <cli> <cli>
-$ submit cprog sof0 sof0.c+lab46:~/src/cprog/sof0$ submit cprog sof0 sof0.c
 Submitting cprog project "sof0": Submitting cprog project "sof0":
     -> sof0.c(OK)     -> sof0.c(OK)
Line 279: Line 279:
  
 <code> <code>
-52:sof0:final tally of results (52/52+39:sof0:final tally of results (39/39
-*:sof0:adequate indentation and comments in sof0.c [4/4+*:sof0:adequate indentation and comments in sof0.c [3/3
-*:sof0:data stored and calculated in correct and separate variables [4/4+*:sof0:data stored and calculated in correct and separate variables [3/3
-*:sof0:effective usage of fprintf() and fscanf() [4/4+*:sof0:effective usage of fprintf() and fscanf() [3/3
-*:sof0:program uses indicated algorithm [12/12+*:sof0:program uses indicated algorithm [9/9
-*:sof0:output conforms to project specifications [12/12+*:sof0:output conforms to project specifications [9/9
-*:sof0:runtime tests of sof0.c succeed [8/8+*:sof0:runtime tests of sof0.c succeed [6/6
-*:sof0:no negative compiler messages for sof0.c [4/4+*:sof0:no negative compiler messages for sof0.c [3/3
-*:sof0:pushed to lab46 mercurial repository [4/4]+*:sof0:pushed to lab46 mercurial repository [3/3]
 </code> </code>
haas/spring2020/cprog/projects/sof0.1535396191.txt.gz · Last modified: 2018/08/27 18:56 by 127.0.0.1