The second week of testing

experiment one

  1. Each .c file, each .h a file, the file name in the best have their own student number
  2. Vi-enter the code and compile with gcc
  3. K in the Vi using printf find help documentation
  4. Vi editing process screenshot submission to full screen, contains its own student number information

************* the class code that pushes the code hosting platform ***************

Creating six empty file, the picture in each function writes a blank file separately, and modify the file name, but the first file name suffix .h, other file extensions are .c.

The second experiment

  1. Pre-code, the compiler, assembler, with the input link vi gcc
  2. Executable files generated have their own student number
  3. Submit pre-compiler, assembler, linker, run the process shots, to full-screen, contains its own student number information

************* the class code that pushes the code hosting platform ***************

Third experiment

  1. Gcc -g compiler code with the input vi
  2. Setting a breakpoint at line main function
  3. In the main function adds an empty cycle, the four cycles for their school, about half of the condition setting a breakpoint number school
  4. Screenshot submit debugging (must contain conditional breakpoints), to full-screen, contains its own student number information

************* the class code that pushes the code hosting platform ***************

Experiment 4

  1. In addition to main.c, the other four modules (add.c sub.c mul.c div.c) do not want the source code to others, how to make a mymath.a static library? main.c how to use mymath.a?
  2. Submit Static library generation process and calls shots (must contain conditional breakpoints), to full-screen, contains its own student number information

************* the class code that pushes the code hosting platform ***************

Experiment 5

  1. In addition to main.c, the other four modules (add.c sub.c mul.c div.c) do not want the source code to others, how to make a mymath.so shared library? main.c how to use mymath.so?
  2. Submit shared library and call the procedure screenshots (must contain conditional breakpoints), to full-screen, contains its own student number information

************* the class code that pushes the code hosting platform ***************

Sixth experiment

makefile 1 vi editor to write compile the above code, compiled object file testmymath, only with an explicit rule on it.

2 Make submission process shots, to full-screen, contains its own student number information

************* Makefile the class code that pushes the hosting platform ***************

Guess you like

Origin www.cnblogs.com/20199304lbs/p/11588277.html