The difference between Visual Studio Debug and release and the role of obj

Source: Internet
Author: User

The difference between Debug and release

1, Debug: Debug version, including debugging information, so the capacity is much larger than the release, and no optimization (optimization will complicate debugging, because the source code and the generated instructions between the more complex), easy to debug the programmer. two files are generated in debug mode, in addition to the. exe or. dll files, there is a. pdb file that records debugging information such as breakpoints in code2, Release: Release version, do not debug the source code, compile time to optimize the speed of the application, making the program in code size and speed is optimal. (Debug information can be generated in a separate PDB file.) two files are generated in release mode. exe or. dll files
ii. role of the obj folder
The obj directory also has debug and release two subdirectories, the obj directory is the source directory for the project build DLL, and then the generated DLL is copied to the Bin directory. obj is used to hold intermediate temporary files generated during compilation. In. NET, the compile time module is compiled, each module's compilation results are saved in the Obj directory, and eventually merged into an. exe or. dll file to the bin directory.
because each compilation is an incremental compilation, which is to recompile only the changed modules, so this obj directory is to save the compilation results of these small pieces and speed up the compilation.                                    

The difference between Visual Studio Debug and release and the role of obj

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.