473,699 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "interprete d" code?

Thanks,

Arpan
Nov 18 '05 #1
1 4119
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******@hotma il.com> wrote in message news:%2******** ********@TK2MSF TNGP09.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 "interprete d" 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
1524
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 file loaded and compiled/interpreted every time a php-file is used that includes this file?
25
1830
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 "Perl-like" symbols are gone and the "self" keyword is back, replacing the period. Prothon has gotten more "python-like", simpler, and more powerful, all at the same time. There is a new tutorial that covers Prothon completely without assuming...
22
2426
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 well-known authority on this. thanks
3
5210
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 purpose of compiling? I guess the compiled python code (question, is compiled python code called byte code?..if not, what is it called?) is not readable since it is not plain text, which may be a reason for compiling...but why else?? Thanks.
26
2695
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. Another important problem is that no interpreter is installed on Windows machine by default and this makes harder to distribute the software. Does it is planned that, in a far future, Python will implement a form of compilation? This would be...
1
1499
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
2701
by: yeshues | last post by:
hi...im searching a assignment and have to know is css Interpreted or compiled?
1
1493
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 works just fine, but I still can't get my compiled jython to work. When I do this: jythonc fac.py (where fac.py is a jython program), it creates a
40
2348
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 value in the register Move the addition's result to place x
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.