![]() Programming languages like C, C++, Java use compilers. These are made for a particular runtime environment. A Programming language is a language which is used by humans to navigate their communication with computers. A scripting language is a language that uses a naive method to bring codes to a runtime environment. Programming languages like JavaScript, Python, Ruby use interpreters. Let us see the differences in a tabular form -: 1. Generates Object Code which further requires linking, hence requires more memory. ![]() No Object Code is generated, hence are memory efficient. However, the overall execution time is comparatively faster than interpreters. However, the overall execution time is comparatively slower than compilers.Ĭompilers usually take a large amount of time to analyze the source code. Interpreters usually take less amount of time to analyze the source code. Scans the entire program and translates it as a whole into machine code. Translates program one statement at a time. However, there are differences between how an interpreter and a compiler works. ![]() To convert source code into machine code, we use either a compiler or an interpreter.īoth compilers and interpreters are used to convert a program written in a high-level language into machine code understood by computers. It only understands the program written in 0's and 1's in binary, called the machine code. However, a computer does not understand high-level language. A high-level language is one that is understandable by us, humans. ![]() We generally write a computer program using a high-level language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |