CGS 3460, Programming Using C

 

Tools for working from windows


Though you are free to use any platform (Windows, Unix, Linux etc.) while developing solutions for assignments, you must make sure that the final version works on the CISE machine rain.cise.ufl.edu with gcc 3.4.2 compiler. For grading purposes your programs will only be tested on rain using gcc 3.4.2 compiler.

Following describe how to access a CISE machine from any Windows terminal with the internet:

Here you can download putty and winscp for Windows. You can use these to access the cise machines.

Putty
Taken from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Put rain.cise.ufl.edu in Host Name field and 22 in Port field. Make sure SSH is selected as Protocol. After these three things, click Open and you would get a terminal which will prompt you for CISE username and password. Put these in and you are ready to compile and execute your programs.


Win SCP
Taken from http://winscp.net/eng/download.php

Putty is used to connect to CISE machine (e.g. rain) and execute commands for compilation and execution of your C programs. You can use the same terminal to write programs using any of the numerous editors like VIM, PICO etc. But in case you are more comfortable editing using some program in Windows environment, you can use Win SCP to transfer these program from you local Windows machine (e.g. your laptop) to CISE machine (e.g. rain). To do this, download and execute this software and in Host name fill rain.cise.ufl.edu, for Port select 22 and put in your CISE username and password. For protocol, make sure  SFTP (allow SCP fallback) is selected. Hit login and you would see two windows, one representing your local computer and the other, CISE machine. You can freely transfer files from one machine to another now.


Following describes how to develop a C program completely on a Windows machine:
[But before submission you must ensure that the program works on rain.cise.ufl.edu using GCC compiler ]

TurboC
Taken from http://www.pitt.edu/~stephenp/misc/downloadTC.html

  • Download the above file.
  • Go to where you downloaded the file, and double click on the self-extracting file (turboC.exe) in Windows to extract it. This will bring up a WinZip Self-Extractor window (you do NOT need WinZip installed on your machine).
    By default, this will extract the files to C:\tctemp directory. You may designate a different location.
    Hit return to extract the files.
  • Exit the WinZip Self-Extractor window (by hitting return twice).
  • Once the files have been extracted, go to the directory c:\tctemp (or wherever you put the unzipped files), and double click on the file called install (it may be called install.exe).
  • This will step you through the installation.
  • That's all for the installation. Now you can go to C:\TC and execute TC.exe to run the Turbo C compiler. This compiler has a built-in program editor (blue screen). You can start editing a new file by pressing alt+F and then selecting New (press Enter). You can type the program code and save it again using alt+F and selecting Save (press Enter). You can compile the program using alt+C and selecting Make EXE file (press Enter). To run the compiled program press alt+R and select Run (press Enter). You can see the output generated by the program (if any) using Atl+F5.
  •  

    Following describes how to submit assignments:

    1. First combine your program files into a single file. At the terminal command prompt (Putty incase you are working from Windows) type
            tar cvf assign1.tar p1.c p2.c
    This should create the compressed file assign1.tar
    2. If you are working from Windows platform using Putty and WinSCP, you can transfer the tar file back to your Windows machine using WinSCP. It is reverse of the process you probably used to transfer your program(s) from your local machine to CISE machine.
    3. Upload the assign1.tar to CourseWorX at the course webpage.