<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C-MCU on Embedded Linux Blog</title><link>https://embeddedlinux.blog/en/series/c-mcu/</link><description>Recent content in C-MCU on Embedded Linux Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 25 Dec 2025 21:40:33 +0700</lastBuildDate><atom:link href="https://embeddedlinux.blog/en/series/c-mcu/index.xml" rel="self" type="application/rss+xml"/><item><title>[C-MCU] 2. Memory Layout in a C program</title><link>https://embeddedlinux.blog/en/2025/12/27/c-mcu-memory-layout-function-call-stack/</link><pubDate>Sat, 27 Dec 2025 06:54:00 +0700</pubDate><guid>https://embeddedlinux.blog/en/2025/12/27/c-mcu-memory-layout-function-call-stack/</guid><description>&lt;p&gt;In the previous post we looked at the Build Process of a C program; now I continue with the Memory Layout (the regions of memory)&lt;/p&gt;&#10;&lt;h2 id="1-overview"&gt;1. Overview&lt;/h2&gt;&#10;&lt;p&gt;&lt;figure class="md-img"&gt;&lt;img src="https://embeddedlinux.blog/uploads/2025/12/image-21.png" alt="" loading="lazy" decoding="async"&gt;&lt;/figure&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;As in the previous post, when we inspect the elf header of the object file with objdump we see (this is elf64-x86-64, which differs somewhat from an MCU's elf; I will cover that in more detail in the MCU demo below)&lt;/p&gt;</description></item><item><title>[C-MCU] 1. The build process of a C program</title><link>https://embeddedlinux.blog/en/2025/12/20/c-mcu-1-build-process-chuong-trinh-code-c/</link><pubDate>Sat, 20 Dec 2025 06:57:00 +0700</pubDate><guid>https://embeddedlinux.blog/en/2025/12/20/c-mcu-1-build-process-chuong-trinh-code-c/</guid><description>&lt;p&gt;You have written plenty of programs in C, but have you ever wondered what runs behind the scenes before the final executable file comes out? Today I will explain that&lt;/p&gt;&#10;&lt;h2 id="1-preparing-the-host-machine"&gt;1. Preparing the host machine&lt;/h2&gt;&#10;&lt;p&gt;For today's post you need GCC to compile C code; the commands don't differ much between the two sides. You can see how to install it at &lt;a href="https://embeddedlinux.blog/en/2024/10/19/cach-cai-dat-gcc-tren-windows-va-ubuntu/"&gt;How to install gcc on Windows and Ubuntu&lt;/a&gt;&#10;&lt;/p&gt;</description></item></channel></rss>