1 / 11

Application Development Functions and Tools

Application Development Functions and Tools. Preparing Source Files. A.c. B.c. B.h. Editor. Text editors (e.g., Notepad) “syntax aware” editors (e.g., emacs) “syntax directed” editors (e.g., VisualStudio). Compiling. $> gcc A.c B.c –o myApp.exe. A.c. B.c. B.h. “gcc”. Preprocessor.

tauret
Download Presentation

Application Development Functions and Tools

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Application Development Functions and Tools

  2. Preparing Source Files A.c B.c B.h Editor • Text editors (e.g., Notepad) • “syntax aware” editors (e.g., emacs) • “syntax directed” editors (e.g., VisualStudio)

  3. Compiling $> gcc A.c B.c –o myApp.exe A.c B.c B.h “gcc” Preprocessor Compile Link • Symbolic constants: #define MAXLEN 256 • .h file control: #ifndef B_H • Conditional compilation: #ifdef _DEBUG • “Other”: #define IS_DYNAMIC(x) ….

  4. Compiling $> gcc A.c B.c –o myApp.exe A.c B.c B.h “gcc” Preprocessor Compile Link

  5. printf() scan() Compiling $> gcc A.c B.c –o myApp.exe A.c B.c B.h “gcc” Preprocessor Compile Link myApp.exe

  6. Compiling /lib/libc.a $> gcc A.c B.c –o myApp.exe printf() scan() A.c B.c B.h “gcc” Preprocessor Compile Link myApp.exe

  7. Compiling $> gcc –c A.c B.c $> gcc A.o B.o –o myApp.exe /lib/libc.a A.c B.c B.h printf() scan() Preprocessor Compile A.o Link myApp.exe B.o

  8. Build: make $> make A.c B.c B.h make Makefile myApp.exe gcc –c A.c gcc –c B.c gcc A.o B.o –o myApp.exe

  9. A.c B.c B.h Repository(Another directory) Makefile Test data Development Process / Tools The “Project” Tools Editor A.c B.c B.h WorkingDirectory cpp/gcc Makefile Test data Make checkin checkout Source Control

  10. RCS myProj/ • ci file • ci –u file • ci –l file • co file • co –l file • rcsdiff file • rlog file A.c B.c B.h Makefile Test data RCS/ A.c B.c B.h Makefile Test data

  11. A.c B.c B.h Makefile Test data A.c B.c B.h Makefile Test data Team Development Using RCS myProj/ hisProj/ A.c B.c B.h Makefile Test data RCS/ RCS/ (mkdir RCS) (ln –s ~tom/myProj/RCS RCS)

More Related