|
|
|
CS-12 Laboratory Due dates are on Calendar PagePrograms are due in class (primary turn in)Email programs as attachments to cs12 @ whizbangscholar.com
A sample data set for convolving [y] = [h] * [x] The array y[ ] is the convolution of the arrays x [ ] and h [ ]
A note on EditorsThe rule is: Find an editor that you like and use it.
Edit is also used. Edit is a DOS program that has been around since before Windows. Works well with the GCC because they both run in a DOS box under Windows. If you don't like it, find something else and use it. There are dozens of editors available and many of them are free. One of my favorites is the Crimson editor, available at www.crimsoneditor.com . It is reasonably fast, allows you to have several files open simultaneously and adds color to comments and key words. If you don't like it, find something else and use it. You can even use Word but be sure to save your files as text files (.txt). Word is very slow for this application (not recommended). If you want to use the Emacs editor, a short tutorial is available. Emacs Tutorial . Emacs works on the Engineering accounts and there is even a version for Windows. If you want to use the vi editor, a short tutorial is available at Vi Tutorial . Vi is a professional editor born in the days of the teletype. Very powerful, very steep learning curve.
Program 0The first assignment is to get familiar with the mechanics of using the gcc compiler. You may want to run gcc on your own Windows machine. You can get the necessary files from the site http://www.delorie.com/djgpp/ An alternate method (which you may find easier) is in 012Lab Setup.pdf. (This is also the method described in class). If you have an ECI account, you may wish to run the C compiler there. You may access these machines using PuTTY. Setup and running of PuTTY is in PuTTY setup (right click to download). If you want to use the Emacs editor, a short tutorial is available. If you want to use the vi editor, a short tutorial is available If you are unsure about which editor to use, just use notepad. Turn in items:
The following batch files were used in class. You can down load them, copy into your c:\gcc directory, and use them (Right click) su.bat If you have installed GCC as recommended, you can use this to set up your system. It can be double clicked on and will bring up the DOS box c.bat This is a batch file to edit, compile, and run the program hello.c You will edit it to work with another program. Later, we will discuss batch files with parameters so you don't even have to edit it. ls.bat The DOS dir command is a bit messy. It can be fixed with a batch file. This file runs dir with a few parameter that cleans up the display. It is named after the directory lister in Unix.
|