In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about the analysis of VS2003 compilation results, the article content is of high quality, so the editor to share with you to do a reference, I hope you have a certain understanding of the relevant knowledge after reading this article.
VS2003 compilation means that it does not use Microsoft's language extension for standard C; Eliminate Duplicate Strings, which is mainly used for string optimization (putting strings in the buffer pool to save space), worries some technicians by using this parameter.
1) General: some overall settings. Warning level is used to control warning messages, of which Level 1 is the most serious level; Warnings as errors treats warning messages as errors; Optimizations is code optimization, which can be set in more detail in the Optimizations item of Category; VS2003 compiles to generate .sbr files, records classes, variables and other symbolic information, and can make more settings in the Listing Files item of Category. Debug info, generate debugging information: None, generate no debugging information (compile faster); Line Numbers Only, generate only global and external symbolic debugging information to .OBJ file or .exe file, reduce the size of the target file; C 7.0-Compatible, record all symbol information used by the debugger to .OBJ file and .exe file; Program Database, create .PDB file to record all debugging information Program Database for "Edit & Continue", create a .PDB file to record all debugging information, and support editing during debugging.
2) C++ Language:pointer_to_member representation is used to set the order of class definition / reference. Generally, VS2003 compilation means that the class must be defined before referencing the class; Enable Exception Handling, synchronous exception handling; Enable Run-Time Type Information forces the compiler to increase the code to check the object type at run time; Disable Construction Displacements, set the class constructor / destructor call virtual function problem.
3) Code Generation:Processor represents code instruction optimization, which can be 80386, 80486, Pentium, Pentium Pro, or Blend represents a mixture of the above optimizations. Use run-time library is used to specify the runtime library (single or multithreaded, Debug version or Release version) that the program uses. One principle is that a process should not use several versions of the runtime library at the same time. Single-Threaded, statically linked LIBC.LIB library; Debug Single-Threaded, statically linked LIBCD.LIB library; Multithreaded, statically linked LIBCMT.LIB library; Debug Multithreaded, statically linked LIBCMTD.LIB library; Multithreaded DLL, dynamically linked MSVCRT.DLL library; Debug Multithreaded DLL, dynamically linked MSVCRTD.DLL library. VS2003 compilers do not support multithreaded calls if they are connected to a single thread library, and multithreaded applications are required to be connected to a multithreaded library.
VS2003 compilation can be used to set calling conventions in three ways: _ _ cdecl, _ _ fastcall, and _ _ stdcall. The main difference between the various calling conventions is whether the parameters of the function are pushed into the stack from left to right or from right to left when the function is called; when the function returns, the function's caller cleans up the parameters pushed into the stack or by the function itself; and the naming modification of the function name at compile time (you can see various naming decorations through Listing Files).
Struct member alignment is used to specify that the member variables in the data structure are aligned according to a few bytes in memory. According to the number of bits of the computer data bus, different alignment methods can access data at different speeds. This parameter is particularly important for applications such as packet network transmission, not the issue of access speed, but the precise definition of data bits, which is generally specified by # pragma pack in the program.
On the analysis of what the VS2003 compilation results are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.