| Electronic Components Datasheet Search |
|
AN3350 Datasheet(PDF) 164 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 Datasheet(HTML) 164 Page - STMicroelectronics |
|
164 / 185 page ![]() Pragmas for code generation AN3350 164/185 Doc ID 018512 Rev 2 21 Pragmas for code generation 21.1 aggressive_inline Specifies the size of enumerated types. Syntax #pragma aggressive_inline on | off | reset Remarks The IPA-based inliner (-ipa file) will inline more functions when this option is enabled. This option can cause code bloat in programs that overuse inline functions. Default is off. 21.2 dont_reuse_strings Controls whether or not to store identical character string literals separately in object code. Syntax #pragma dont_reuse_strings on | off | reset Remarks Normally, C and C++ programs should not modify character string literals. Enable this pragma if your source code follows the unconventional practice of modifying them. If you enable this pragma, the compiler separately stores identical occurrences of character string literals in a source file. If this pragma is disabled, the compiler stores a single instance of identical string literals in a source file. The compiler reduces the size of the object code it generates for a file if the source file has identical string literals. The compiler always stores a separate instance of a string literal that is used to initialize a character array. Example 115 shows an example. Although the source code contains 3 identical string literals, "cat", the compiler will generate 2 instances of the string in object code. The compiler will initialize str1 and str2 to point to the first instance of the string and will initialize str3 to contain the second instance of the string. Using str2 to modify the string it points to also modifies the string that str1 points to. The array str3 may be safely used to modify the string it points to without inadvertently changing any other strings. By default, this pragma is off. Example 115 Reusing string literals #pragma dont_reuse_strings off void strchange(void) { |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |