![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: cnet, cplusplus, cplusplusnet, dotnet, net |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| |||
| C++ is the language that is used to generated the native code, which then looks for the .NET runtime environment. The constructs vary between the .NET languages (mainly due to the way the languages themselves are designed), but you can create the same program in pretty much any of the languages. Any variation in the run times between the same program in different languages is fairly negligible with the .NET platform, but if an abnormal variation in the same basic program occurs between different languages, it is usually due to the design of the program, not the implementation of the language. As for advantages of .NET over JDK, I know that Sun's JDK doesn't compile to native code like Microsoft's .NET implementation does. The idea is the same Linux because Mono is required on Linux, just like Windows requires the Microsoft .NET runtime. Just like implementations of C++ vary (Borland C++, GNU C++, Watcom C++, Microsoft Visual C++ (and C++.NET), etc.), so too do implementations of the .NET runtime. ![]() There isn't a real advantage to using .NET over a JDK other than perhaps a minor speed improvement when using one or the other. After all, it depends on the implementation of .NET and the implementation of the Java runtime (e.g. Sun's Java HotSpot) as well as the implementation of the language and how it is converted to proper .NET code. Then there is the issue of your own code! There may be one way to do something in Java that would be faster using completely different code in C#, for example. The other difference is that Microsoft's .NET compilers compile in code to look for a certain version of the .NET runtime while Sun's Java compiler requires you to run it yourself (unless you use a wrapper or you compile to native code yourself). That's my take on it, and I'm sticking to it. ![]() __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (08-12-2007) | ||
| |||
| Native code refers to the executable format that the OS itself can understand, also known as a "binary", allowing it to tell the hardware how to process the file. When someone talks about java applications, usually it refers to the class files that are byte code (or jar files that archive the class files). You can't run java byte code directly. That's why it requires a java virtual machine. Java is compiled, but only to java byte code for the JVM to parse. With .NET, you actually get an executable file (binary). __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (08-15-2007) | ||
| |||
| C++ for .NET just uses the c++ syntax but everything has to run through the visual studio runtime files. So - essentially, you need to install their "interpreter" files to run your C++ in VS. If you do straight up C++ with a non-vs compiler, then its machine-code compliant which doesn't need to use the runtimes visual studio provides. __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
![]() |
| Thread Tools | |
| Display Modes | |
| |