473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compiled, Not Interpreted!

I am a newbie ASP.NET programmer. While going through the MSDN ASP.NET tutorial, I came across the following sentence:

All ASP.NET code is compiled rather than interpreted which allows early binding, strong typing & just-in-time (JIT) compiling to native code.

What do "compiled rather than interpreted" & "early binding" mean? Also since ASP.NET code is compiled & not interpreted, what are the benefits of "compiled" code over "interpreted" code?

Thanks,

Arpan
Nov 18 '05 #1
1 4094
Compiling code is the step of taking your VB.Net/C#/XXX code and turning it into native code. Native code is code that the actual processor understands (assembly language). In essence it's the process of converting code from human readable form (what you work with) to machine form (what the processor works with). Compiling can be done manually (like going in VS.Net and selecting "Build" or automatically, like the JIT in ASP.Net).'

Interpreted code is also turned into native code (as it obviously must for the processor to understand it), but it's done each time the program is run (or the page is requested in the case of ASP). This means that each time the code/page is run, the compiling step must take place (which is pretty complicated, involves symbol trees, parsers, error recovery and blah blah blah).

The benefits of compiled code are numerous. First off, it's faster because compilation only happens once - additionally, since compiled code can normally take more time to compile, the compilers tend to make better optimization. Secondly it you can simply compile the code to see if there are any compile-time errors, otherwise you have to run the code - which can still detect compile time errors since the code IS compiled, but they feel more like runtime errors (which are bad). Security is another benefit, with compiled code you only have to ship the compiled product to your clients - much harder to steal your code - interpreted code doesn't have this benefit. There are more...

You can read up on late vs early binding here: http://word.mvps.org/FAQs/InterDev/E...ateBinding.htm but early binding code is faster because it's compiled up front....it provides code which is far less likely to cause a runtime error...and generally tends to have better support with your tools (such as intellisense).

Hope this helps,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Arpan" <ar******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
I am a newbie ASP.NET programmer. While going through the MSDN ASP.NET tutorial, I came across the following sentence:

All ASP.NET code is compiled rather than interpreted which allows early binding, strong typing & just-in-time (JIT) compiling to native code.

What do "compiled rather than interpreted" & "early binding" mean? Also since ASP.NET code is compiled & not interpreted, what are the benefits of "compiled" code over "interpreted" code?

Thanks,

Arpan
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Erwin Moller | last post by:
Hi group, I have an includefile that I (ahum) include in many scripts. It contains only functions I need now and then. Now I was wondering how things work behind the scenes. Is the whole...
25
by: Mark Hahn | last post by:
There is a new release of Prothon that I think is worth mentioning here. Prothon version 0.1.0 has changed almost beyond recognition compared to what was discussed here before. For example: the...
22
by: Ajay | last post by:
hi! is there an authoritative source on the performance of scripting languages such as python vs. something like java, c, c++. its for a report, so it would be awesome if i could quote some...
3
by: codecraig | last post by:
Hi, I have a question about Python. I know that it is an interpreted language, meaning a python program is converted to binary on the fly each time it is run, or compiled. What would be the...
26
by: billiejoex | last post by:
Hi all. I'm sorry for a noob question like this but I'll try to ask it anyway. One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature....
1
by: Dan.Mandini | last post by:
I compiled the vb code of an .adp and ran it. The compiled code ran slower than the interpreted version?? How does that happen?? Is there any way I can increase speed of the adp?
1
by: yeshues | last post by:
hi...im searching a assignment and have to know is css Interpreted or compiled?
1
by: kramer31 | last post by:
Hi. First, I'm not sure if this is the correct group, but becuase I couldn't find a jython newsgroup, I'll post here. I'm new to jython and am just trying to get it to work. Interpreted jython...
40
by: castironpi | last post by:
I'm curious about some of the details of the internals of the Python interpreter: I understand C from a hardware perspective. x= y+ 1; Move value from place y into a register Add 1 to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.