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 ]

Visual C Express
Taken from http://www.microsoft.com/express/vc/

  • Download the above file.
  • Go to where you downloaded the file, and double click on the self-extracting file (vcsetup.exe) in Windows to extract it. This will install the application, follow the onscreen directions.
  • That's all for the installation. Now find visual c express under your program files. Open a C file to work with. Press Ctrl + F5 to compile, build and execute your C source code. Note, there are slight differences between this compiler and rain, so make sure it compiles on rain.cise.ufl.edu before submitting.  

    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 using WebCT.