51的C程序能嵌套几层?

您所在的位置:网站首页 wpsif嵌套层数 51的C程序能嵌套几层?

51的C程序能嵌套几层?

2023-08-08 17:36| 来源: 网络整理| 查看: 265

The Cx51 Compiler embodies some known limitations that are listed below. For the most PART, there are no limits with respect to components of the C language; for example, you may specify an unlimited NUMBER of symbols or NUMBER of case statements in a SWITCH block. If there is enough address space, several thousand symbols could be defined.

    * A maximum of 19 levels of indirection (access modifiers) to any STANDARD data type are supported. This includes array descriptors, indirection operators, and function descriptors.    * Preprocessor symbols may be up to 255 characters LONG. All 255 characters are significant. Preprocessor symbols are case sensitive.    * Names may be up to 256 characters LONG. The C language provides for case sensitivity in regard to function and variable NAMEs. However, for compatibility reasons, all NAMEs in the object file appear in capital letters. It is therefore irrelevant if an external object NAME within the source program is written in capital or small letters.    * The maximum NUMBER of case statements in a SWITCH block is not fixed. Limits are imposed ONLY by the available MEMORY size and the maximum size of individual functions.    * The maximum NUMBER of nested function calls in an invocation parameter list is 10.    * The maximum NUMBER of nested include files is 9. This VALUE is independent of list files, preprocessor files, or whether or not an object file is to be generated.    * The maximum depth of directives for conditional compilation is 20. This is a preprocessor limitation.    * Instruction blocks ({...}) may be nested up to 15 levels DEEP.    * Macros may be nested up to 8 levels DEEP.    * A maximum of 32 parameters may be passed in a macro or function call.    * The maximum length of a LINE or a macro definition is 65,535 characters. Even after a macro expansion, the result may not exceed 65,535 characters.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3