<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MPC5xxx中的主题 virtual table _eabi() initialization</title>
    <link>https://community.nxp.com/t5/MPC5xxx/virtual-table-eabi-initialization/m-p/679319#M8092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging my code that contains classes with inheritance on MPC5748G, I saw that the startup code doesn't initialize the virtual of global classes, and this is only called in __eabi right before main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, How can I move the call to be part of my satartup code instead of being a prologue to main()?&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25047i33D6BEE4AA7703DC/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 14:47:48 GMT</pubDate>
    <dc:creator>kfirbs</dc:creator>
    <dc:date>2017-06-29T14:47:48Z</dc:date>
    <item>
      <title>virtual table _eabi() initialization</title>
      <link>https://community.nxp.com/t5/MPC5xxx/virtual-table-eabi-initialization/m-p/679319#M8092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging my code that contains classes with inheritance on MPC5748G, I saw that the startup code doesn't initialize the virtual of global classes, and this is only called in __eabi right before main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, How can I move the call to be part of my satartup code instead of being a prologue to main()?&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25047i33D6BEE4AA7703DC/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/virtual-table-eabi-initialization/m-p/679319#M8092</guid>
      <dc:creator>kfirbs</dc:creator>
      <dc:date>2017-06-29T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: virtual table _eabi() initialization</title>
      <link>https://community.nxp.com/t5/MPC5xxx/virtual-table-eabi-initialization/m-p/679320#M8093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received some information from compiler team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;You can rename main to something else e.g. main_user() and call __eabi() from whetever place you want&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;__eabi() generates automatically for main() only&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Another way is to suppress original eabi function by custom one&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Hope it helps a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/virtual-table-eabi-initialization/m-p/679320#M8093</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-07-04T12:59:39Z</dc:date>
    </item>
  </channel>
</rss>

