Debian

root user:su

Install gcc:  1.apt-get install gcc
        2.apt-get install make
        3.apt-get install gdb

        Install all: apt-get install build-essential

Open and edit files: vim ..directory/filename -> Insert

Save and quit: Esc -> :w(save but not quit)

                               :wq(save and quit)

                               :q(quit without saving)

                               :q!(force quit) 

Use gcc:gcc -o test test.c

               ./test

      1.Assemble

        gcc -c test.c generate test.o

      2.Link

        gcc -o test test.o *.o(if there is any) generate test

      3.Run

        ./test

        

相关文章:

  • 2022-12-23
  • 2021-04-27
  • 2022-01-02
  • 2022-12-23
  • 2021-12-19
  • 2021-08-20
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2021-04-17
  • 2022-02-17
  • 2022-12-23
  • 2021-12-30
  • 2021-07-26
相关资源
相似解决方案