473,385 Members | 1,764 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,385 software developers and data experts.

compilation of .net languages...

I think I know the outcome to this question (please forgive me because I
know it is probably asked a thousand times!)

Does Microsoft plan to bring out some kind of mechanism to compile directly
to machine code (i.e. bypassing IL (or further protecting the IL code).
I know that there is a third party encryption software around that Microsoft
is offering on MSDN downloads. I have also seen the interview with Anders
Heljsberg discussing that it would be quicker to re-write some software
rather than reverse engineer it from IL etc etc (therefore native code not
needed).

I just cant stop thinking that one of the biggest reasons for the slowish
uptake of .NET is this lack of native code issue ...and yes I know that the
IL/JIT is fundamental to the interoperability between .NET languages *but* I
feel the option should be there to compile one step further if the assembly
is not for reuse.

I'm sure technically it would be relatively simple for microsoft to create a
software bridge to "hook" native machine code (.net) to the CLR.

Anyone know of such plans?

--

--

Br,
Mark Broadbent
mcdba , mcse+i
=============
Nov 16 '05 #1
2 1469
Check out the ngen.exe utility that comes with the framework.

"Mark Broadbent" <no************@no-spam-please.com> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl...
I think I know the outcome to this question (please forgive me because I
know it is probably asked a thousand times!)

Does Microsoft plan to bring out some kind of mechanism to compile directly to machine code (i.e. bypassing IL (or further protecting the IL code).
I know that there is a third party encryption software around that Microsoft is offering on MSDN downloads. I have also seen the interview with Anders
Heljsberg discussing that it would be quicker to re-write some software
rather than reverse engineer it from IL etc etc (therefore native code not
needed).

I just cant stop thinking that one of the biggest reasons for the slowish
uptake of .NET is this lack of native code issue ...and yes I know that the IL/JIT is fundamental to the interoperability between .NET languages *but* I feel the option should be there to compile one step further if the assembly is not for reuse.

I'm sure technically it would be relatively simple for microsoft to create a software bridge to "hook" native machine code (.net) to the CLR.

Anyone know of such plans?

--

--

Br,
Mark Broadbent
mcdba , mcse+i
=============

Nov 16 '05 #2
I don't see why they'd want to go around IL. The CLR can outperform just
normal native code in some scenarios (due to garbage collection). IL is also
optimized per-machine when compiled down to native code. So, for instance,
the same IL on a P4 will produce different machine code than when used on a
Pentium.

A lot of Longhorn (Avalon, the cool new graphics) is written in C# and
compiled to IL. They are going to pre-JIT things (ngen). Currently ngen is
recommended to reduce startup time, but the code output by pre-JIT is ~5%
slower than the normal JIT. There are plans to improve this in the future.

As far as IP property protection, I don't see IL vrs. x86 as a huge issue
(and I'm in the obfuscation business: www.invisiSource.com). Native code can
be cracked easily as well (I wrote a small tutorial:
http://www.atrevido.net/blog/PermaLi...-af866b730150).

Going back to native code is just more problems. There are differences for
different platforms (x86 vrs IA64, vs AMD's 64-bit stuff, smaller processors
(Compact Framework), etc.). The benefits of IL far outweigh any perceived
problems.

-mike
MVP

"Mark Broadbent" <no************@no-spam-please.com> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl...
I think I know the outcome to this question (please forgive me because I
know it is probably asked a thousand times!)

Does Microsoft plan to bring out some kind of mechanism to compile
directly
to machine code (i.e. bypassing IL (or further protecting the IL code).
I know that there is a third party encryption software around that
Microsoft
is offering on MSDN downloads. I have also seen the interview with Anders
Heljsberg discussing that it would be quicker to re-write some software
rather than reverse engineer it from IL etc etc (therefore native code not
needed).

I just cant stop thinking that one of the biggest reasons for the slowish
uptake of .NET is this lack of native code issue ...and yes I know that
the
IL/JIT is fundamental to the interoperability between .NET languages *but*
I
feel the option should be there to compile one step further if the
assembly
is not for reuse.

I'm sure technically it would be relatively simple for microsoft to create
a
software bridge to "hook" native machine code (.net) to the CLR.

Anyone know of such plans?

--

--

Br,
Mark Broadbent
mcdba , mcse+i
=============


Nov 16 '05 #3

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

Similar topics

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...
1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
39
by: Steven T. Hatton | last post by:
I came across this while looking for information on C++ and CORBA: http://www.zeroc.com/ice.html. It got me to wondering why I need two different languages in order to write distributed computing...
5
by: Bob | last post by:
Are they different names for the same concept ?
1
by: Soren Staun Jorgensen | last post by:
Hi, Is it possible (at runtime) to get the DateTime of when the current assembly was created - or better compiled ?? I could of course check the file creation date of the assembly, but this...
5
by: Mark Broadbent | last post by:
I think I know the outcome to this question (please forgive me because I know it is probably asked a thousand times!) Does Microsoft plan to bring out some kind of mechanism to compile directly...
1
by: Paljo | last post by:
Trying to compile VC++ 6 project in VC++ 7 and getting a compiling error, error C2955: '_com_ptr_t' : use of class template requires template argument list Any thoughts? Thanks
1
by: MR | last post by:
Hi, it has been observed that when we try to instantiate a .Net dll for the first time in a session (e.g. from an exe in .Net), it takes almost 10 times compared to subsequent instantiations. ...
5
by: Akanksha | last post by:
Hey! I have a little problem here.. I am trying to compile a huge C++ code of about 2 lakh lines and the compilation gives me the following error cc1plus: out of memory allocating 42381928...
9
by: Raxit | last post by:
Hi, we are designing some stuff , that will generate c++ program(s) What we want is we wanted to execute that generated code.... i.e. 1. Xml based language 2. C++ code generated from 1....
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.