The pre-processing process scans the source code and performs initial conversion to generate new source code for the compiler. It can be seen that the preprocessing process processes the source code prior to the compiler.
In C language, there is no
C Language Conditional compilation and compilation preprocessing phase analysis and application summary (note)The C language is generated by the source code at the following stages:C source program, compile-and-preprocessing, compile-and-build,
I. C LanguageSource codeThe generation phases are as follows:
C SourceProgram->Compile preprocessing->Compile->Optimization Program->Assembler->Link Program->Executable files
Where Compile and pre-process, readCSource program, the pseudo
1.Print error message
If the execution of a program requires that a macro be defined, you can use # error, # warning to print the error (warning) information when the macro is not defined. For example:
# Ifndef _ UNIX __# Error "This section will
Today, we tested the array Address Transfer Method in vc6 and found that in the main function, the address pointed to by the array name is the same as the address of every 0 element in the array, however, when an array is passed to the called
Basic concepts of Attribute
Some people often ask, what is Attribute? What is its use? It seems that this program can run without it. In fact. in Net, Attribute is a very important component. In order to help you understand and master Attribute and
In the process of writing code, often output some debugging information to the screen, will normally call printf this kind of function.But when debugging is done, we need to manually remove or annotate these places.Recently watching the "Linux C
C/C ++ does not have a standard logstore, which is directly replaced by printf. However, it does not support hierarchical control of output information. It seems too important to use log4cpp. Here I will give a few simple log functions that I often
C #-# define condition compilation,
Introduction:
C # pre-processor commands will never be converted into executable code commands, but will affect all aspects of the compilation process. Commonly used pre-processor Commands include # define, #
C # preprocessor directives are never translated into executable code commands, but can affect all aspects of the compilation process, common preprocessor directives have # define, #undef, #if, #elif, #else和 #endif, and so on, the following
#define name [string]Macro definition. When compiling preprocessing, all occurrences of macro names in the program are replaced with strings in the macro definition... Variable parameter, used to pass a mutable argument list, you can use __va_args__
The C language is generated by the source code at the following stages:C source program, compile-and-preprocessing, compile-and-build, assembler, linker, executable fileIn the pre-compilation stage, the C source program is read, and the
Document directory
Build
Test
Anytao.net |. NET website you must know|Anytao technology blog
Released on: 2009.12.29 by: Anytao2009 original works of Anytao.com and Anytao. Please refer to the author and source in the post.
Question proposal
1, Problem 2, the solution to the problemChoose Apple LLVM 7.0 under build setting to GUN993. Causes of this problem3.1. The following macro is defined in the NSException.h file/* * Asserts to use in Objective-c method bodies */#If!defined (Nsassert)
The question of the proposed
In the evening, turning over the chat in the group, I found an interesting question: how can I use encoding to determine whether a DLL or EXE is a debug build or a release build? There was not much discussion, so I had
Linux device driver debugging, we see in the kernel kernel using dev_dbg to control the output information, the essence of this function is to adjustUse PRINTK (kern_debug) to output printing information. The following two steps are required to open
source program preferably have. csproj or. vbproj files, if not, take some time to debugI'll take vb.net as an example to explain the following: from Proj we can get the following useful information There are many configuration options in the
The macros you encounter are for conditional compilation. In general, all rows in the source program participate in the compilation. But sometimes it is desirable to compile a portion of the content only if it satisfies a certain condition, that is,
These macros are used for Conditional compilation. Generally, all the rows in the source program are compiled. However, sometimes you want to compile a part of the content only when certain conditions are met, that is, to specify the compilation
This article introduces the usage of # if # ifdef and # ifndef. For more information, see.
# If # ifdef and # ifndef usage
The priority of the shift operator is higher than that of the conditional operator, and the heavy load operator cannot change
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.