answersLogoWhite

0

What is the difference between runtime and compilation?

Updated: 8/17/2019
User Avatar

Wiki User

15y ago

Best Answer

Compilation is generally the process of parsing the human-readable source code and turning it into machine-readable byte code. Runtime occurs during the execution of the byte code as a program.

Examples:

A compile-time error is an error that occurs while the source code is being turned into byte code.

A runtime error is an error that occurs while the program is executing.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between runtime and compilation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between compilation and execution?

spelling is difference


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.


What is interpration?

What is the main difference between compilation and interpretation? Give an example of languages of compilation and interpretation respectively.


What is Difference between dynamic polymorphism and static polymorphism with example?

Static polymorphism is used the concept of early binding or we can say compile time binding where as dynamic polymorphism used the concept of late binding or run time binding.


What is the difference between compilation and interpretation?

Without giving the definition for both words,A compilation is several things from A specific origin grouped together. and A iterpretation is making A opinion based judgment from the evidence on hand


What is the difference between compile time and run time polymorphism?

Runtime prolymorphism means overriding compiletile polymorphism means overloading


What is the difference between a compilation error and logic error?

errors which come during compilation is known as compilation error. here we get syntax errors only not logical errors like division by zero. logical error occur during run time example:if you write a program for division with zero you will not get compilation error but during execution you will error


What is the difference between properties and methods in qtp?

property is like variable (can able to set and get value at runtime) but method is like a function which will return the value at runtime so the only different is property will hold the value untill the new value will set into that.


What is the main difference between java and dotnet?

java is from sun and .net is from microsoft, java is a language + runtime and .net is run frame that supports multiple language.


What is the difference between an algorithm and heuristics?

An algorithm is a step-by-step procedure for solving a problem, typically involving a finite number of steps. Heuristics, on the other hand, are general problem-solving strategies that may not guarantee a correct solution but can often lead to a quicker or simpler resolution. Algorithms are precise and deterministic, while heuristics are more flexible and open to interpretation.


Does compile time depend on instance characteristics?

Yes. Although dynamic binding occurs at runtime, the compiler ensures that all runtime instances are covariant with compile time types. That is, you cannot instantiate a base class pointer to a derived type that is not covariant with the base class. The derived type must have an "is-a" relationship or the compilation will fail.


When does a Borland c compiler throw an error as could not execute 16-bit process error code 32 when a program is executed after successful compilation?

If a program compiles and links successfully then there can be no compiler errors, period. Your error is a runtime error because the error only occurs when the machine code is executed, not during the compilation or linking processes. Runtime error 32 indicates a sharing violation. This essentially means you've attempted to access a file that is being used by another process.