| 전자부품 데이터시트 검색엔진 |
|
AN3350 데이터시트(PDF) 107 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 데이터시트(HTML) 107 Page - STMicroelectronics |
|
107 / 185 page ![]() AN3350 Intermediate optimizations Doc ID 018512 Rev 2 107/185 13.1.5 Dead store elimination Dead store elimination removes unused assignment statements. This optimization reduces size and improves speed. Table 21 explains how to control the optimization for dead store elimination. For example, in Example 57 the variable x is first assigned the value of y * y. However, this result is not used before x is assigned the result returned by a call to getresult(). In Example 58 the compiler can safely remove the first assignment to x since the result of this assignment is never used. Example 57 Before dead store elimination void func_from(int x, int y) { x = y * y; otherfunc1(y); x = getresult(); otherfunc2(y); } Example 58 After dead store elimination void func_to(int x, int y) { otherfunc1(y); x = getresult(); otherfunc2(y); } 13.1.6 Live range splitting Live range splitting attempts to reduce the number of variables used in a function. This optimization reduces a function’s runtime stack size, requiring fewer instructions to invoke the function. This optimization potentially improves execution speed. Table 22 explains how to control the optimization for live range splitting. Table 21. Controlling dead store elimination Turn control this option from here... use this setting source code #pragma opt_dead_assignments on | off | reset command line -opt [no]deadstore Table 22. Controlling live range splitting Turn control this option from here... use this setting Source code There is no pragma to control this optimization. Command line -opt level=3, -opt level=4 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |