RFC: الخلفيّة السياديّة متعدّدة المعماريّات — توليد شيفرة أصليّ بلا LLVM (جدوليّ، ٥ ISAs) - #57
Open
SalehKadah wants to merge 1 commit into
Open
RFC: الخلفيّة السياديّة متعدّدة المعماريّات — توليد شيفرة أصليّ بلا LLVM (جدوليّ، ٥ ISAs)#57SalehKadah wants to merge 1 commit into
SalehKadah wants to merge 1 commit into
Conversation
…LVM (جدوليّ، ٥ ISAs) مقترحٌ يرسمن قرارَ المالك: خلفيّةٌ أصليّةٌ لمترجم ص بلا LLVM لتوليد الشيفرة، متعدّدةُ المعماريّات من صميم التصميم لا كإضافةٍ لاحقة. المبدأ: خطٌّ خلفيٌّ واحدٌ مشترك (SIR→MIR→تخصيص سجلّات→ترميز→كاتب ELF)، والاختلافُ بين المعماريّات بياناتٌ في جداولٍ لكلّ ISA لا كودًا. النطاق: x86-64، AArch64، RISC-V، ARMv7، i686. يشمل: عقد واجهة Target، الجداول الأربعة (تعليمات/سجلّات/أنماط اختيار/ABI) في language-truth/backend/، محرّك ترميز عامّ (fixed32/variable)، بوّابة اختبار تفاضليّ بايت-ببايت ضدّ llvm-mc (مصحِّح مرجعيّ لا تبعيّة إنتاج)، وانضباط الهدف الثاني المبكّر لإثبات عموميّة التجريد. مسارٌ مرحليّ م٠–م٦، صفر كسرٍ توافقيّ. مستندٌ لتقريرَي no_llvm؛ RFC سياديّ مستقلّ يحقّق ما وضعته مظلّةُ الاستضافة الذاتيّة خارجَ نطاقها (استبدال LLVM بخلفيّة أصليّة). راجعته أميليا خصميًّا: CLEAR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ملخّص
مقترحٌ يرسمن قرارَ المالك: خلفيّةٌ أصليّةٌ لمترجم ص لا تعتمد على LLVM إطلاقًا لتوليد الشيفرة، مصمَّمةً متعدّدةَ المعماريّات من الجذر لا كإضافةٍ لاحقة.
المبدأ الحاكم: خطٌّ خلفيٌّ واحدٌ مشترك (
SIR → MIR → تخصيص سجلّات → ترميز → كاتب ELF)، والاختلافُ بين المعماريّات يُوصَف بياناتٍ في جداولٍ لكلّ ISA لا كودًا.النطاق: خمسُ معماريّات —
x86-64,AArch64/ARM64,RISC-V (RV64GC+RV32),ARMv7-A,i686.النتيجة المرئيّة:
sadc file.ص --target=aarch64-linux -o fileيُنتج ثنائيَّ ELF أصليًّا — بلاclang/lld/as/زمن تشغيل C — لأيٍّ من المعماريّات.أبرز ما يقرّره
Targetتمنع تسرّبَ افتراضات معماريّةٍ بعينها إلى الخطّ المشترك.language-truth/backend/<arch>/: تعليمات + سجلّات + أنماط اختيار + ABI.fixed32مشترك لـARM64/RISC-V،variableلعائلة x86).llvm-mc— LLVM مصحِّحٌ مرجعيٌّ في CI فقط، لا تبعيّة إنتاج.الموقع والأساس
no_llvmالداخليّين (تقرير الاستقلال + تصميم طبقة الترميز الجدوليّة).اكتب_بايتات/اقرأ_بايتات(لغة PR #316) — كتابةُ بايتاتٍ خامٍّ تشمل0x00، لبنةُ كاتب ELF.المراجعة
راجعته أميليا (مراجعة خصميّة) على جولتين: التقطت خطأَ إسنادٍ («حاجز ١») + تحريفَ تعداد SIR + انحرافَ ترتيبِ الهدف الثاني + تدقيقَ تاريخٍ وحالةِ PR — وكلُّها عولِجت، ثمّ CLEAR.
🤖 Generated with Claude Code