C compilers and assignment 3
This presentation is the property of its rightful owner.
Sponsored Links
1 / 19

C compilers and assignment 3 PowerPoint PPT Presentation


  • 40 Views
  • Uploaded on
  • Presentation posted in: General

C compilers and assignment 3. CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/. At least 3 ways to compile C. Using gcc in chaos.cs.auckland.ac.nz Using gcc in Cygwin Using visual studio

Download Presentation

C compilers and assignment 3

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


C compilers and assignment 3

C compilers and assignment 3

CS 210 Tutorial 8

Compiling C, assignment 3 helps

Studwww.cs.auckland.ac.nz/

~mngu012/public.html/210/8/


At least 3 ways to compile c

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/compilers/cpp.shtml


Chaos cs auckland ac nz

Chaos.cs.auckland.ac.nz

  • SHH connection: Putty, SSH

  • Putty:

    • http://www.putty.nl/download.html

  • SSH:

    • Mirror.cs.auckland.ac.nz ?


Run putty

Run Putty


Run putty1

Run Putty


Run putty2

Run Putty


Run putty3

Run Putty

  • 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


Man gcc ctrl c to exit

Man gcc – Ctrl+C to exit


Compile c code in chaos

Compile C code in chaos

  • Compile

    • Gcc –o filename.exe filename.c

  • Run:

    • ./ filename.exe arg1 arg2 arg3


Compile c on cygwin

Compile C on Cygwin

  • Document on Cygwin

    • http://www.cs.auckland.ac.nz/~bruce-h/resources/cygwin/

  • Download from http://mirror.cs.auckland.ac.nz


Cygwin to run gcc

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


Compile c in visual studio

Compile C in Visual Studio


Compile c in visual studio1

Compile C in Visual Studio


Compile c in visual studio2

Compile C in Visual Studio


Compile c in visual studio3

Compile C in Visual Studio


Compile c in visual studio4

Compile C in Visual Studio


Compile c in visual studio5

Compile C in Visual Studio


Compile c in visual studio6

Compile C in Visual Studio


Assignment 3

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


  • Login