<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SDK GCC linker script placing constants in RAM?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69771/sdk-gcc-linker-script-placing-constants-in-ram</link><description>Perusing the GCC linker script supplied as part of SDK v16, I noticed that the .data section is specified as follows: 
 .data : AT (__etext) { __data_start__ = .; *(vtable) *(.data*) 
 . = ALIGN(4); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Dec 2020 09:32:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69771/sdk-gcc-linker-script-placing-constants-in-ram" /><item><title>RE: SDK GCC linker script placing constants in RAM?</title><link>https://devzone.nordicsemi.com/thread/286241?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 09:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b32041-21e1-4749-94a1-663a9e39efa4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This has been like this for a long time. I suspect this is a consequence of Nordic not using much C++, and therefore never having been in a position where we needed to optimize this. I have asked the team responsible for this to comment, but I do not expect to have more until beginning of January.&lt;/p&gt;
&lt;p&gt;Update: I got feedback from the team responsible for the MDK and according to them there is no strong rationale for placing the vtable in RAM. You should consider it a default that can be changed without any side effects if that fits your application better (typically if it is RAM constrained).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>