startup.c.022i.opt_local_passes 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. init_data_bss ()
  2. {
  3. const uint32 * zeroTable_Ptr;
  4. const uint32 * initTable_Ptr;
  5. uint32 j;
  6. uint32 i;
  7. uint32 size;
  8. uint32 len;
  9. uint8 * ram;
  10. const uint8 * rom;
  11. const struct Sys_ZeroLayoutType * zero_layout;
  12. const struct Sys_CopyLayoutType * copy_layout;
  13. long unsigned int _1;
  14. const struct Sys_CopyLayoutType * _2;
  15. long unsigned int _3;
  16. const struct Sys_CopyLayoutType * _4;
  17. long unsigned int _5;
  18. const struct Sys_CopyLayoutType * _6;
  19. uint8 * _7;
  20. long unsigned int _8;
  21. long unsigned int _9;
  22. const struct Sys_CopyLayoutType * _10;
  23. uint8 * _11;
  24. long unsigned int _12;
  25. const uint8 * _13;
  26. uint8 * _14;
  27. unsigned char _15;
  28. long unsigned int _16;
  29. const struct Sys_ZeroLayoutType * _17;
  30. long unsigned int _18;
  31. const struct Sys_ZeroLayoutType * _19;
  32. uint8 * _20;
  33. long unsigned int _21;
  34. long unsigned int _22;
  35. const struct Sys_ZeroLayoutType * _23;
  36. uint8 * _24;
  37. long unsigned int _25;
  38. uint8 * _26;
  39. <bb 2> :
  40. # DEBUG BEGIN_STMT
  41. # DEBUG BEGIN_STMT
  42. # DEBUG BEGIN_STMT
  43. # DEBUG BEGIN_STMT
  44. # DEBUG BEGIN_STMT
  45. len_35 = 0;
  46. # DEBUG len => len_35
  47. # DEBUG BEGIN_STMT
  48. size_36 = 0;
  49. # DEBUG size => size_36
  50. # DEBUG BEGIN_STMT
  51. i_37 = 0;
  52. # DEBUG i => i_37
  53. # DEBUG BEGIN_STMT
  54. j_38 = 0;
  55. # DEBUG j => j_38
  56. # DEBUG BEGIN_STMT
  57. initTable_Ptr_39 = &__INIT_TABLE;
  58. # DEBUG initTable_Ptr => initTable_Ptr_39
  59. # DEBUG BEGIN_STMT
  60. zeroTable_Ptr_40 = &__ZERO_TABLE;
  61. # DEBUG zeroTable_Ptr => zeroTable_Ptr_40
  62. # DEBUG BEGIN_STMT
  63. len_42 = *initTable_Ptr_39;
  64. # DEBUG len => len_42
  65. # DEBUG BEGIN_STMT
  66. initTable_Ptr_43 = initTable_Ptr_39 + 4;
  67. # DEBUG initTable_Ptr => initTable_Ptr_43
  68. # DEBUG BEGIN_STMT
  69. copy_layout_44 = initTable_Ptr_43;
  70. # DEBUG copy_layout => copy_layout_44
  71. # DEBUG BEGIN_STMT
  72. i_45 = 0;
  73. # DEBUG i => i_45
  74. goto <bb 7>; [INV]
  75. <bb 3> :
  76. # DEBUG BEGIN_STMT
  77. _1 = i_27 * 12;
  78. _2 = copy_layout_44 + _1;
  79. rom_56 = _2->rom_start;
  80. # DEBUG rom => rom_56
  81. # DEBUG BEGIN_STMT
  82. _3 = i_27 * 12;
  83. _4 = copy_layout_44 + _3;
  84. ram_57 = _4->ram_start;
  85. # DEBUG ram => ram_57
  86. # DEBUG BEGIN_STMT
  87. _5 = i_27 * 12;
  88. _6 = copy_layout_44 + _5;
  89. _7 = _6->rom_end;
  90. _8 = (long unsigned int) _7;
  91. _9 = i_27 * 12;
  92. _10 = copy_layout_44 + _9;
  93. _11 = _10->rom_start;
  94. _12 = (long unsigned int) _11;
  95. size_58 = _8 - _12;
  96. # DEBUG size => size_58
  97. # DEBUG BEGIN_STMT
  98. j_59 = 0;
  99. # DEBUG j => j_59
  100. goto <bb 5>; [INV]
  101. <bb 4> :
  102. # DEBUG BEGIN_STMT
  103. _13 = rom_56 + j_29;
  104. _14 = ram_57 + j_29;
  105. _15 = *_13;
  106. *_14 = _15;
  107. # DEBUG BEGIN_STMT
  108. j_62 = j_29 + 1;
  109. # DEBUG j => j_62
  110. <bb 5> :
  111. # j_29 = PHI <j_59(3), j_62(4)>
  112. # DEBUG j => j_29
  113. # DEBUG BEGIN_STMT
  114. if (j_29 < size_58)
  115. goto <bb 4>; [INV]
  116. else
  117. goto <bb 6>; [INV]
  118. <bb 6> :
  119. # DEBUG BEGIN_STMT
  120. i_60 = i_27 + 1;
  121. # DEBUG i => i_60
  122. <bb 7> :
  123. # i_27 = PHI <i_45(2), i_60(6)>
  124. # DEBUG i => i_27
  125. # DEBUG BEGIN_STMT
  126. if (i_27 < len_42)
  127. goto <bb 3>; [INV]
  128. else
  129. goto <bb 8>; [INV]
  130. <bb 8> :
  131. # DEBUG BEGIN_STMT
  132. len_46 = *zeroTable_Ptr_40;
  133. # DEBUG len => len_46
  134. # DEBUG BEGIN_STMT
  135. zeroTable_Ptr_47 = zeroTable_Ptr_40 + 4;
  136. # DEBUG zeroTable_Ptr => zeroTable_Ptr_47
  137. # DEBUG BEGIN_STMT
  138. zero_layout_48 = zeroTable_Ptr_47;
  139. # DEBUG zero_layout => zero_layout_48
  140. # DEBUG BEGIN_STMT
  141. i_49 = 0;
  142. # DEBUG i => i_49
  143. goto <bb 13>; [INV]
  144. <bb 9> :
  145. # DEBUG BEGIN_STMT
  146. _16 = i_28 * 8;
  147. _17 = zero_layout_48 + _16;
  148. ram_50 = _17->ram_start;
  149. # DEBUG ram => ram_50
  150. # DEBUG BEGIN_STMT
  151. _18 = i_28 * 8;
  152. _19 = zero_layout_48 + _18;
  153. _20 = _19->ram_end;
  154. _21 = (long unsigned int) _20;
  155. _22 = i_28 * 8;
  156. _23 = zero_layout_48 + _22;
  157. _24 = _23->ram_start;
  158. _25 = (long unsigned int) _24;
  159. size_51 = _21 - _25;
  160. # DEBUG size => size_51
  161. # DEBUG BEGIN_STMT
  162. j_52 = 0;
  163. # DEBUG j => j_52
  164. goto <bb 11>; [INV]
  165. <bb 10> :
  166. # DEBUG BEGIN_STMT
  167. _26 = ram_50 + j_30;
  168. *_26 = 0;
  169. # DEBUG BEGIN_STMT
  170. j_55 = j_30 + 1;
  171. # DEBUG j => j_55
  172. <bb 11> :
  173. # j_30 = PHI <j_52(9), j_55(10)>
  174. # DEBUG j => j_30
  175. # DEBUG BEGIN_STMT
  176. if (j_30 < size_51)
  177. goto <bb 10>; [INV]
  178. else
  179. goto <bb 12>; [INV]
  180. <bb 12> :
  181. # DEBUG BEGIN_STMT
  182. i_53 = i_28 + 1;
  183. # DEBUG i => i_53
  184. <bb 13> :
  185. # i_28 = PHI <i_49(8), i_53(12)>
  186. # DEBUG i => i_28
  187. # DEBUG BEGIN_STMT
  188. if (i_28 < len_46)
  189. goto <bb 9>; [INV]
  190. else
  191. goto <bb 14>; [INV]
  192. <bb 14> :
  193. return;
  194. }