About BIN and OBJ folders

xiaoxiao2021-03-06  64

Reply to: Jhnhu (playing is the technology) () Reputation: 88 http://search.9cbs.net/expert/topic/763/763070.xml?temp=.7477381bin is the directory OBJ put the intermediate code the catalog

Release and Debug are different running mode Debugs increasing debug code for easy debugging. After debugging, use the release version, no debug code, reduce the program volume, speed up the speed! First, let's talk about compilation: Compile a source program file, to pass the grammar, type, and even determine the feasibility of the execution, etc. It is a process for multiple scans for files, and finally there is a process of optimization. There will be a lot of intermediate files. There will be a few Ms in the middle (temporary) file in an MFC project OBJ directory under VC6. Re-complex point, a Project has a resource file such as a picture (sound), to call other DLL class libraries (may be .NET components, possibly COM), may also consist of multiple .cs files. To connect so many things together. In the past, C or PASCAL was used in DOS, you must compile it into .Obj files, then connect with Link.exe, is an Exe file. (Remember that PASCAL is still FORTRAN to get a .Obj intermediate file) Conclusion: Compilation requires a lot of intermediate files to store temporary results, prepare for the next step. C # is an object-oriented complexity higher! The OBJ directory is used to store temporary files!

Second, Debug & ReleaseDebug debugging, you set up breakpoints in the program, why vs.net knows there to stop, when you move the mouse to a variable, VS.NET will display it at the time? Because the compiler adds a lot of debugging the code you need in the code, you can get the vs.net, return to you. These codes are of course to take up space and time. After your program is completed, you can run correctly. You can remove these code at this time, you should use the Release mode.

Regardless of Debug or Release mode, it is necessary to compile, there is an intermediate temporary code generation, so there is a debug release directory in the OBJ directory. In the two modes of compilation, put it in a bin directory. After compiling, the middle temporary code is not used, so it is generally regardless of the things in the obj directory!

Everyone said, can I write a book? :)

转载请注明原文地址:https://www.9cbs.com/read-110348.html

New Post(0)