<p></p>
<p>Output of an ATmega328p (Christmas Tree Edition :-D) with the following patch:</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/examples/hello-world/main.c b/examples/hello-world/main.c</span>
index f51bf8c0a0..54b7cd082d 100644
<span class="pl-md">--- a/examples/hello-world/main.c</span>
<span class="pl-mi1">+++ b/examples/hello-world/main.c</span>
<span class="pl-mdr">@@ -21,6 +21,8 @@</span>
 
 #include <stdio.h>
 
<span class="pl-mi1"><span class="pl-mi1">+</span>#include <assert.h></span>
<span class="pl-mi1"><span class="pl-mi1">+</span></span>
 int main(void)
 {
     puts("Hello World!");
<span class="pl-mdr">@@ -28,5 +30,7 @@</span> int main(void)
     printf("You are running RIOT on a(n) %s board.\n", RIOT_BOARD);
     printf("This board features a(n) %s MCU.\n", RIOT_MCU);
 
<span class="pl-mi1"><span class="pl-mi1">+</span>    assert(0);</span>
<span class="pl-mi1"><span class="pl-mi1">+</span></span>
     return 0;
 }</pre></div>
<h5>This PR</h5>
<pre><code>$ avr-readelf -s bin/atmega328p/hello-world.elf  | rg main_stack
    88: 008002bb   640 OBJECT  LOCAL  DEFAULT    3 main_stack
</code></pre>
<pre><code>2021-09-30 10:47:17,726 # Hello World!
2021-09-30 10:47:17,729 # You are running RIOT on a(n) atmega328p board.
2021-09-30 10:47:17,731 # This board features a(n) atmega328p MCU.
2021-09-30 10:47:17,731 # Stack Pointer: 0x050e
2021-09-30 10:47:17,731 # *** RIOT kernel panic:
2021-09-30 10:47:17,732 # FAILED ASSERTION.
2021-09-30 10:47:17,732 # 
2021-09-30 10:47:17,732 # *** halted.
2021-09-30 10:47:17,732 # 
</code></pre>
<h5><code>master</code></h5>
<pre><code>$ avr-readelf -s bin/atmega328p/hello-world.elf  | rg main_stack
    88: 008002a3   640 OBJECT  LOCAL  DEFAULT    3 main_stack
</code></pre>
<pre><code>2021-09-30 10:48:50,965 # Hello World!
2021-09-30 10:48:50,968 # You are running RIOT on a(n) atmega328p board.
2021-09-30 10:48:50,970 # This board features a(n) atmega328p MCU.
2021-09-30 10:48:50,971 # Stack Pointer: 0x04f6
2021-09-30 10:48:50,973 # *** RIOT kernel panic:
2021-09-30 10:48:50,974 # FAILED ASSERTION.
2021-09-30 10:48:50,974 # 
2021-09-30 10:48:50,975 # *** halted.
2021-09-30 10:48:50,975 # 
</code></pre>
<p>And</p>
<div class="highlight highlight-source-python"><pre><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">hex</span>(<span class="pl-c1">0x04f6</span> <span class="pl-c1">+</span> (<span class="pl-c1">0x008002bb</span> <span class="pl-c1">-</span> <span class="pl-c1">0x008002a3</span>))
<span class="pl-s">'0x50e'</span></pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16917#issuecomment-931075077">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGH75Z4CFIA2H42ISTUEQQYZANCNFSM5FBYQY3A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYGTHL5FKHSNCX75T6DUEQQYZA5CNFSM5FBYQY3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG57RIBI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16917#issuecomment-931075077",
"url": "https://github.com/RIOT-OS/RIOT/pull/16917#issuecomment-931075077",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>