How Compiler different from Interpreter.

Q7. How is a compiler different from interpreter?

Ans. A compiler converts the source code (program in HLL) into object code (Machine Language code) in one go and reports all the errors along with their line numbers.

An interpreter converts source code into object code line by line and executes it there and then. It does not shift to the next line if line is erroneous.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s