C programming and compilers
Download
1 / 21

C programming and compilers - PowerPoint PPT Presentation


  • 108 Views
  • Uploaded on

C programming and compilers. At least 3 ways to compile C. Using gcc in UNIX environment via chaos.cs.auckland.ac.nz Using gcc in Cygwin in Windows Using visual studio in Windows Other compiler: http://www.thefreecountry.com/compilers/cpp.shtml. Chaos.cs.auckland.ac.nz.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' C programming and compilers' - christen-burton


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

At least 3 ways to compile c
At least 3 ways to compile C

  • Using gcc in UNIX environment via chaos.cs.auckland.ac.nz

  • Using gcc in Cygwin in Windows

  • Using visual studio in Windows

  • 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 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



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 \\afs\all\ec.auckland.ac.nz\software\windows\all\Cygwin

  • Copy the complete directory onto a CD, and take home.


Cygwin to run gcc
Cygwin to run gcc

  • Help on how to make cygwin run with gcc

    • http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

    • Make sure you include gcc, gdb and make in Cygwin installation

  • Everything else just the same as Unix chaos.cs.auckland.ac.nz










Running some examples
Running some examples

  • Run examples…

  • Any question?


ad