LangProc / langproc-2017-cw

1 stars 4 forks source link

Test Deliverable Questions 8&9 #14

Open edpickup opened 6 years ago

edpickup commented 6 years ago

Could you clarify the wording on case 8, and offer advice on 9, for the test bench deliverable?

For case 8 for global variables; is this testing a global variable within just ${NAME}.c ie something like

int foo =5;

int f(){
  return foo;
}

or is it to do with passing between ${NAME}.c & ${NAME}_driver.c via extern ie

extern int foo;

int f(){
  return foo;
}

Then for test case 9, to test if our compiler can emit a valid main point, how would the driver file be required / hook into the file MAIN.c?