C++, the “Old Fashioned” way

前端 未结 8 1026
孤街浪徒
孤街浪徒 2021-02-04 14:56

I have been learning C++ in school to create small command-line programs.

However, I have only built my projects with IDEs, including VS08 and QtCreator.

I under

8条回答
  •  失恋的感觉
    2021-02-04 15:45

    compiler takes a cpp and turns into an object file which contains native code and some information about that native code

    a linker takes the object files and lays out an excutable using the extra information in the object file.... it finds all the references to the same things and links them up, and makes and image useful for the operating system to know how to load all the code into memory.

    check out object file formats to get a better understanding of what the compiler produces

    http://en.wikipedia.org/wiki/Object_file (different compilers use different formats)

    also check out (for gcc)

    http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html on what you type at the command line

提交回复
热议问题