1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

gcc, g++: add Arabic translation (#15840)

This commit is contained in:
Machiavelli 2025-03-10 05:55:54 +02:00 committed by GitHub
parent 794f92da04
commit e65555734a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 74 additions and 0 deletions

37
pages.ar/common/g++.md Normal file
View file

@ -0,0 +1,37 @@
# g++
> ترجمة ملفات مصدر C++.
> جزء من GCC (مجموعة مترجمات جنو).
> لمزيد من التفاصيل: <https://gcc.gnu.org>.
- ترجمة ملف مصدر إلى ملف تنفيذي ثنائي (Binary):
`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}`
- تفعيل عرض جميع الأخطاء والتحذيرات:
`g++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}`
- عرض التحذيرات الشائعة، وإضافة رموز التصحيح إلى الإخراج، وتحسين الأداء دون التأثير على التصحيح:
`g++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
- اختيار معيار لغة C++ للترجمة (C++98/C++11/C++14/C++17):
`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{-o|--output}} {{path/to/output_executable}}`
- تضمين مكتبات تقع في مسار مختلف عن ملف المصدر:
`g++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
- ترجمة وربط ملفات مصدر متعددة في ملف تنفيذي ثنائي (Binary):
`g++ {{-c|--compile}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{-o|--output}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}`
- تحسين البرنامج المترجم لزيادة الأداء:
`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
- عرض الإصدار:
`g++ --version`

37
pages.ar/common/gcc.md Normal file
View file

@ -0,0 +1,37 @@
# gcc
> معالجة مسبقة وتجميع ملفات مصدر C و C++، ثم تجميعها وربطها معًا.
> جزء من GCC (مجموعة مترجمات جنو).
> لمزيد من التفاصيل: <https://gcc.gnu.org>.
- ترجمة ملفات مصدر متعددة إلى ملف قابل للتنفيذ:
`gcc {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}`
- تفعيل عرض جميع الأخطاء والتحذيرات:
`gcc {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}`
- عرض التحذيرات الشائعة، وإضافة رموز التصحيح إلى الإخراج، وتحسين الأداء دون التأثير على التصحيح:
`gcc {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
- تضمين مكتبات من مسار مختلف:
`gcc {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
- ترجمة الكود المصدري إلى تعليمات لغة التجميع:
`gcc {{-S|--assemble}} {{path/to/source.c}}`
- ترجمة الكود المصدري إلى ملف كائن دون ربط:
`gcc {{-c|--compile}} {{path/to/source.c}}`
- تحسين البرنامج المترجم لزيادة الأداء:
`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
- عرض الإصدار:
`gcc --version`