Programming languages, translators and IDEs
הוצג
8:28
חומרה ותוכנה
זהו מחשב חדש לגמרי. כל חלק פיזי עובד — המעבד, הזיכרון, המסך, המקלדת. מדליקים אותו ואין תגובה. לא מופיע שולחן העבודה…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| translator/trænˈsleɪtə/ | מתרגם |
| programs/ˈprəʊɡræmz/ | A set of instructions specifying operations for a computer to carry out. |
| programming language/ˈprəʊɡræmɪŋ ˈlæŋɡwɪdʒ/ | שפת תכנות |
| CPU/ˌsiː piː ˈjuː/ | |
| machine code/məˈʃiːn kəʊd/ | קוד מכונה |
| high-level language/haɪ ˈlevl ˈlæŋɡwɪdʒ/ | שפה ברמה גבוהה |
| portable/ˈpɔːtəbl/ | |
| low-level language/ləʊ ˈlevl ˈlæŋɡwɪdʒ/ | שפה ברמה נמוכה |
| hardware/ˈhɑːdweə/ | |
| binary/ˈbaɪnəri/ | A number system using base two, with the digits zero and one. |
| assembly language/əˈsemblɪ ˈlæŋɡwɪdʒ/ | שפת אסמבלר |
| mnemonics/nɪˈmɒnɪks/ | |
| compiler/kəmˈpaɪlə/ | קומפיילר |
| interpreter/ɪnˈtɜːprɪtə/ | אינטרפרטר |
| Errors | |
| integrated development environment/ˈɪntɪɡreɪtɪd dɪˈveləpmənt enˈvaɪrənmənt/ | סביבת פיתוח משולבת |
| code editor/kəʊd ˈedɪtə/ | A tool for writing and modifying source code, often with features that help identify its structure or mistakes. |
| run-time environment | |
| error diagnostics/ˈerə ˌdaɪəɡˈnɒstɪks/ | |
| auto-completion/correction | |
| prettyprinting/ˈpretɪprɪntɪŋ/ | |
| executable file | |
| source code/sɔːs kəʊd/ |
שפות ומתרגמים
- אנשים כותבים תוכניות בשפת תכנות; ה-CPU מפעיל קוד מכונה.
- השפות הן גבוהות או נמוכות.
- מתרגם ממיר תוכנית לקוד מכונה — ו-IDE עוזר לך לכתוב אותה.
מעבדת מושגי מחשוב
Classify concrete examples by the computing idea they demonstrate.
גבוהה לעומת נמוכה
- שפה בגובה גבוה (למשל Python) נראית כמו אנגלית — קל לכתוב/תיקון וניידת (פעילה על מחשבים שונים).
- שפה בגובה נמוך קרובה לחומרה: קוד מכונה (בינארי, פועל ישירות על ידי ה-CPU) ושפת אסימבל (מנונימונים לקוד מכונה).
- קוד בגובה נמוך הוא ספציפי ל-CPU — משמש כאשר יש צורך בשליטה מלאה בחומרה או בקוד מהיר וקטן מאוד.

שפות בגובה גבוה הן קרובות לשפת האדם וניידות; שפות בגובה נמוך (אסימבל וקוד מכונה) הן קרובות לחומרה ומקושרות ל-CPU אחד בלבד

מִתְרַגֵּם מתרגם את כל התוכנית פעם אחת לקוד מכונה; אינטרפרטר מתרגם ופעיל שורה אחת בכל פעם.

A high-level language (like Python):
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
High-level languages are easy to read/write and portable; low-level languages are CPU-specific.
מתרגם לעומת מעביר
| מתרגם | מעביר | |
|---|---|---|
| תרגום | את כל התוכנית בו-זמנית | שורה אחת באחת |
| שגיאות | דווחות כולן בסיום | עצור בראשונה שגיאה |
| תוכנית מוגמרת | פועלת מהר, ללא צורך בתרגום נוסף | איטית יותר, דורשת את המעביר |
- השתמש במתרגם כדי לשתף תוכנית מוגמרת ומהירה; מעביר בעת כתיבה ובדיקה.

מערכת הפעלה היא תוכנה — התוכניות שמכוונות את הציוד לקיים פעולות.

Match each term to what it is.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
High-level → readable; machine code → binary; a compiler translates once, an interpreter goes line by line.
A compiler:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
A compiler translates everything once into a fast stand-alone program; an interpreter goes line by line.
An interpreter translates the whole program once, so it runs fast without the interpreter; a compiler translates line by line.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
False. They are swapped: a compiler translates the whole program once and the result runs without it, while an interpreter translates and runs line by line, stopping at the first error.
סביבת פיתוח משולבת (IDE)
- IDE מאגדת את הכלים לכתיבת תוכניות במקום אחד:
- עריך קוד, סביבת ריצה, מתרגם, אבחון שגיאות, השלמה/תיקון אוטומטי, ופידוט (צבע + מקדם יפה).

ציוד הוא החלקים הפיזיים; תוכנה היא התוכניות

Which is a feature of an IDE?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
An IDE bundles an editor, translator, run-time, diagnostics, auto-complete and prettyprinting.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
Worked example: choosing a translator
A team is writing a game. While they are developing it they test small changes often; at the end they will sell it to customers. Which translator suits each stage?
- During development: an interpreter. It runs the code line by line straight away and stops at the first error, showing where it is, so each small change can be tested quickly.
- For sale: a compiler. It translates the whole program once into an executable file 可执行文件. Customers run it without needing the translator, it runs fast, and the source code 源代码 stays hidden.
Which translator converts assembly language into machine code?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Each assembly mnemonic maps to one machine-code instruction, which an assembler translates.
A compiler reports all the errors it finds after translating the whole program.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
An interpreter stops at the first error; a compiler gives an error report for the whole program.
הבנתך מושלמת
- רמה גבוהה = דומה לאנגלית, נייד; רמה נמוכה = קוד מכונה (בינארי) / אסמבלר, ספציפי למעבד
- מתרגם ממיר קוד לקוד מכונה; מתרגם (כל התוכנית בו-זמנית) מול מעביר (שורה אחר שורה)
- מתרגם → תוכנית מוגמרת ומהירה; מעביר → בדיקה נוחה יותר
- IDE כוללת עריך, מתרגם, אבחון, השלמה אוטומטית ופידוט
מה השתבש? רק צוות האתר רואה זאת.