.Net framework


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: .Net framework

  1. #1
    Join Date
    Jul 2007
    Posts
    4

    .Net framework

    so C++ project that uses .Net library will be running slower right?
    since it compiled to (IL) and not native machine code? then .Net CLR
    will translate the (IL) code on the fly at runtime?

    Is the .Net CLR similar to Java virtual machine then? since Java is
    translated to byte code (intermediate code) and Java virtural machine
    is translate to machine code on the fly.

  2. #2
    Join Date
    Sep 2008
    Posts
    86
    You are correct that .Net code is compiled into IL. However, on the first run of the code, the CLR converts the IL to native. So any subsequent run will be running as native machine code.

    Also, .Net code isn't always slower. Sometimes it's faster. It really just depends on what you are doing. If you are doing intensive math calculations, then yes, it will be slower than non-.Net C++. But for most purposes, the speed differences are negligible.

Similar Threads

  1. Replies: 0
    Last Post: 06-26-2006, 04:07 AM
  2. Replies: 0
    Last Post: 02-18-2005, 09:14 AM
  3. Replies: 0
    Last Post: 05-28-2003, 11:34 AM
  4. .Net Framework
    By rbs in forum .NET
    Replies: 2
    Last Post: 02-10-2003, 08:29 AM
  5. YAG's status report - Feb 14, 2002
    By Seth Grossman [MSFT] in forum .NET
    Replies: 1
    Last Post: 02-15-2002, 01:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center