<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=46&amp;t=17815&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-03-07T13:43:10+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=46&amp;t=17815&amp;mode</id>
<entry>
<author><name><![CDATA[savian86]]></name></author>
<updated>2017-03-07T13:43:10+01:00</updated>
<published>2017-03-07T13:43:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184240#p184240</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184240#p184240"/>
<title type="html"><![CDATA[Re: [ARM C++] Funkcja wirtualna - duża zajętość flasha]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184240#p184240"><![CDATA[
Dodałem do linkera flagę i już jest ok, kod się nie rozrasta <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> Dzięki kijas1 za naprowadzenie<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">-specs=nano.specs</div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=393">savian86</a> — 7 mar 2017, o 13:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-03-07T12:47:02+01:00</updated>
<published>2017-03-07T12:47:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184236#p184236</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184236#p184236"/>
<title type="html"><![CDATA[Re: [ARM C++] Funkcja wirtualna - duża zajętość flasha]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184236#p184236"><![CDATA[
Jaki newlib?Zdaje się, że standardowy. Przy newlib nano powino już być ok.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 7 mar 2017, o 12:47</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[toch88]]></name></author>
<updated>2017-03-07T12:22:40+01:00</updated>
<published>2017-03-07T12:22:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184232#p184232</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184232#p184232"/>
<title type="html"><![CDATA[Re: [ARM C++] Funkcja wirtualna - duża zajętość flasha]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184232#p184232"><![CDATA[
możesz pokazać flagi z jakimi kompilujesz?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1138">toch88</a> — 7 mar 2017, o 12:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[savian86]]></name></author>
<updated>2017-03-07T11:59:31+01:00</updated>
<published>2017-03-07T11:59:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184230#p184230</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184230#p184230"/>
<title type="html"><![CDATA[[ARM C++] Funkcja wirtualna - duża zajętość flasha]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=17815&amp;p=184230#p184230"><![CDATA[
Cześć,<br /><br />Mam pewną zagwozdkę, prosty kod, dwie klasy, jedna dziedziczy po drugiej + funkcja wirtualna.<br />Jeśli w klasie bazowej funkcja wirtualna wymusza implementacje<br />[syntax=cpp]virtual void x() = 0;[/syntax]<br />to kod wzrasta o ponad 60kB i nie mogę dojść dlaczego tak się dzieje, może ktoś jest mi w stanie podpowiedzieć.<br />Niżej kawałki kodu, a w załączniku cały projekt.<br />Kompilując to pod AVRy nie mam takiego przyrostu kodu<br /><br />main.cpp[syntax=cpp]#include &quot;stm32f4xx.h&quot;<br /><br />#include &quot;A.h&quot;<br />#include &quot;B.h&quot;<br /><br />int main(void)<br />{<br />B b(1,1);<br /><br />for(;;);<br />}[/syntax]<br /><br />A.h<br />[syntax=cpp]#ifndef A_H_<br />#define A_H_<br /><br /><br />#define BIG_SIZE<br /><br />class A {<br /><br />public:<br />A(int a, int b);<br /><br /><br />#ifdef BIG_SIZE<br />virtual void x() =0;<br />#else<br />virtual void x();<br />#endif<br /><br />};<br /><br /><br />#endif /* A_H_ */[/syntax]<br /><br />A.cpp<br />[syntax=cpp]#include &quot;A.h&quot;<br /><br />A::A(int a, int b) {<br /><br />}<br /><br /><br />#ifndef BIG_SIZE<br />void A::x() {<br /><br />}<br />#endif[/syntax]<br /><br />B.h<br />[syntax=cpp]#ifndef B_H_<br />#define B_H_<br /><br />#include &quot;A.h&quot;<br /><br />class B : public A {<br /><br />public:<br />B(int a, int b);<br /><br />void x();<br /><br />};<br /><br /><br />#endif /* B_H_ */[/syntax]<br /><br />B.cpp<br />[syntax=cpp]#include &quot;B.h&quot;<br /><br />B::B(int a, int b): A(a,b) {<br /><br />}<br /><br /><br /><br />void B::x() {<br /><br />}[/syntax]<br /><br />Kod pisany w openstm32, czyli eclipse dla stm32<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=393">savian86</a> — 7 mar 2017, o 11:59</p><hr />
]]></content>
</entry>
</feed>