Converting computer code for other operating systems is done by a compiler. True or false?
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
A computer doesn't actually understand Java or C++ or Python. It only understands machine language, in 1s and 0s.
Just like someone translating from, say, English to Spanish, you have two choices:
translate it in advance (like compiling a Spanish edition of a book)
or translate it live (working with an interpreter who translates for you).
Computers are no different. Some programming languages use an interpreter, which translates live. Most use a compiler, which translates ahead of time for the specific type of computer.
So, yes, a compiler is one of the ways to convert written code (like Java) into something the operating system can understand and run. Without that, the computer won't understand the code you've written.
(One warning: If the question is "Is a compiler the ONLY way...?", then no, because some languages aren't compiled; they're interpreted.)