Presentation is loading. Please wait.

Presentation is loading. Please wait.

C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/

Similar presentations


Presentation on theme: "C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/"— Presentation transcript:

1 C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/

2 At least 3 ways to compile C Using gcc in chaos.cs.auckland.ac.nz Using gcc in Cygwin Using visual studio Other compiler: http://www.thefreecountry.com/compile rs/cpp.shtml

3 Chaos.cs.auckland.ac.nz SHH connection: Putty, SSH Putty:  http://www.putty.nl/download.html http://www.putty.nl/download.html SSH:  Mirror.cs.auckland.ac.nz ?

4 Run Putty

5

6

7 After log on, putty will put you inside UNIXHOME folder You can go to your G drive by typing “cd..” Type “man gcc” for manuals of GCC

8 Man gcc – Ctrl+C to exit

9 Compile C code in chaos Compile  Gcc –o filename.exe filename.c Run: ./ filename.exe arg1 arg2 arg3

10 Compile C on Cygwin Document on Cygwin  http://www.cs.auckland.ac.nz/~bruce- h/resources/cygwin/ http://www.cs.auckland.ac.nz/~bruce- h/resources/cygwin/ Download from http://mirror.cs.auckland.ac.nz http://mirror.cs.auckland.ac.nz

11 Cygwin to run gcc Help on how to make cygwin run with gcc  /tutorial8/cygwin.htm Everything else just the same as Unix chaos.cs.auckland.ac.nz

12 Compile C in Visual Studio

13

14

15

16

17

18

19 Assignment 3 Using library IO and Number  bsr IO.print.enter;  bsr IO.readLine.enter;  bsr Number.fromString.enter;  bsr IO.vprintf.enter; IOPrintLineReadLine and PrintNumbers folders


Download ppt "C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/"

Similar presentations


Ads by Google