C (cygwin, gcc, vi, gnuplot) - PowerPoint PPT Presentation

About This Presentation
Title:

C (cygwin, gcc, vi, gnuplot)

Description:

Title: Author: aaa Last modified by: aaa Created Date: 9/7/2006 2:01:22 AM Document presentation format: – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 9
Provided by: aaa8150
Category:
Tags: bash | cygwin | gcc | gnuplot | linux | shell

less

Transcript and Presenter's Notes

Title: C (cygwin, gcc, vi, gnuplot)


1
????? ????
2006? 2?? ??? ??
  • ????? ??????
  • ??? ??

2
?? ??
  • ?? ??? 3-6?
  • ?? ??
  • C (cygwin, gcc, vi, gnuplot)
  • FFT (1D and 2D, convolution, correlation)
  • SAR (eSAR Processor)
  • InSAR (eInSAR Processor)
  • ??? ?? ??? ??

3
Cygwin
  • Linux-like environment for Windows
  • Why cygwin?
  • Free
  • Windows applications
  • Website www.cygwin.com

4
Cygwin Setup
  • Setup.exe
  • Install from the internet
  • Install for All Users
  • Root directory f\cygwin
  • Default text file type Unix/binary RECOMMENDED
  • Select FTP site
  • Package selection
  • Devel -gt gcc (GCC C compiler)
  • Editors -gt vim (a text editor)
  • Graphics -gt gnuplot
  • Shells -gt bash (c shell)
  • System -gt procps (top system monitoring)
  • Text -gt more (file viewer)
  • X11 -gt xorg-x11-base

5
Cygwin Setup
  • Text Editor WordPad
  • Edit .bash_profile
  • Set PATH so it includes user's private bin if
    it exists
  • if -d "HOME/bin" then
  • PATH./HOME/binPATH
  • fi
  • Edit .bashrc
  • alias dir'ls -alF
  • Try linux commands
  • cd, ls, man, dir, cc, pwd, top, startx

6
gnuplot test
  • Try gnuplot
  • cygwingt startx
  • In X-terminal,
  • cygwinxgt gnuplot
  • gnuplotgt plot sin(x)
  • gnuplotgt plot -55 -22 cos(x)
  • gnuplotgt splot cos(xy)
  • gnuplotgt replot sin(xy)
  • gnuplotgt help
  • gnuplotgt help plotting

7
Gcc Hello World
  • Text editor WordPad
  • Edit hello.c
  • include ltstdio.hgt
  • main()
  • printf(Hello World!!\n)
  • Compile and run
  • cygwingtcc o hello hello.c
  • cygwingt hello
  • Hello World!!

8
Gcc gnuplot
  • Edit plot1.c
  • include ltstdio.hgt
  • main()
  • FILE fp
  • int i
  • double pi
  • pi4.atan(1.)
  • fpfopen(plot1.dat, w)
  • for(i0 ilt100 i)
  • fprintf(fp, d lf\n, i, sin(2pii/50))
  • fclose(fp)
  • Compile, run and plot
Write a Comment
User Comments (0)
About PowerShow.com