answersLogoWhite

0


Best Answer

So it can be run.

Answering from an alternative angle, compiling source code into an executable program creates a list of instructions that can be understood directly by the CPU of the computer without any extra tools.

The alternative being a script is a program which has to be read and interpreted by another program. This causes a major decrease in performance as the CPU had to run a program that will read the script character by character and perform a lot of lookup functions to perform the same tasks.

The in-between option is using a virtual machine language which produces a sort-of half compiled program. This is similar to LLVM, Java or the .NET CLR. All three options allow a program to be made smaller, can be run byte for byte or by an interpreter or can compile the code on the machine where it will be run. This is the ideal solution as the code can be compiled to run optimally on the end user's machine instead of trying to optimize code for all possible systems.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

You cannot compile functions, only source-files. Any source file can contain zero or more functions

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of compiling a function separately?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which terms refers to how all the systems of the body function separately and as a unit?

which term refers to how all the systems of the body function separately and as a unit


Which term refers to how all the systems of the body function separately and as unit?

which term refers to how all the systems of the body function separately and as a unit


What are the advantages of reproduction as a function of the family?

what are the advantages of reproduction as a function the family?


Departmentalization by function advantages and disadvantages?

what are advantages & disadvantages of departmentalization by function


Is the Church under Judaism?

No. Christianity and its churches function entirely separately from Judaism.


Can you define a function inside a function?

No. Functions should be defined separately. So you would not define a function within a function. You can define one function, and while defining another function, you can call the first function from its code.


What are some advantages of a function table in math?

it shows the function of things


What are advantages and disadvantages of transfer functions approach?

advantages and disadvantages of transfer function?


How do you graph and evaluate piecewise functions?

Graph each "piece" of the function separately, on the given domain.


Advantages of organizing as function of management?

it saves time


What are the advantages in using a rule for a function rather than listing function values in a table?

If the domain is infinite, it is not possible to list the function.


Give the advantages and disadvantages of grouping a business by function?

Give_the_advantages_and_disadvantages_of_grouping_a_business_by_function