<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Epilogue on P01NT</title><link>https://outofsrvc.github.io/ar/tags/epilogue/</link><description>Recent content in Epilogue on P01NT</description><generator>Hugo</generator><language>ar</language><lastBuildDate>Tue, 25 Aug 2026 20:15:00 +0300</lastBuildDate><atom:link href="https://outofsrvc.github.io/ar/tags/epilogue/index.xml" rel="self" type="application/rss+xml"/><item><title>بنى الدوال (Function Constructs)</title><link>https://outofsrvc.github.io/ar/asm/function-constructs/</link><pubDate>Tue, 25 Aug 2026 20:15:00 +0300</pubDate><guid>https://outofsrvc.github.io/ar/asm/function-constructs/</guid><description>&lt;p>بسم الله الرحمن الرحيم&lt;/p>
&lt;p>في هذا المقال سنتعرف على كيفية تعريف الدوال.&lt;/p>
&lt;hr>
&lt;h2 id="1-أطر-المكدس-stack-frames">1. أطر المكدس (Stack Frames)&lt;/h2>
&lt;p>في أعلى مستويات التجريد، يُنظَّم المكدس إلى &lt;strong>أطر مكدس&lt;/strong> (Stack Frames). كل استدعاء دالة يُنشئ إطار مكدس جديدًا يحتوي على جميع البيانات المتعلقة بتلك النسخة من الدالة.&lt;/p>
&lt;p>&lt;img alt="الشكل 4.1: المكدس منظّم في سلسلة من أطر المكدس" decoding="async" loading="lazy" src="https://outofsrvc.github.io/assets/img/asm/figure-4-1.png">&lt;/p>
&lt;p>&lt;em>الشكل 4.1: المكدس منظّم في سلسلة من أطر المكدس&lt;/em>&lt;/p>
&lt;p>عندما تستدعي دالةٌ دالةً أخرى، تُنشئ الدالة المستدعاة إطار مكدسها الخاص &lt;strong>فوق&lt;/strong> إطار مكدس الدالة المستدعية. وعندما ترجع الدالة المستدعاة، تنظّف إطار مكدسها. وبناءً عليه، فإن عمر إطار المكدس يطابق مدة تنفيذ دالته.&lt;/p></description></item></channel></rss>