Click to See Complete Forum and Search --> : Unmanaged code with Managed code. Would Unmanaged be as fast as it should?


aewarnick
July 19th, 2003, 05:39 PM
As fast as it normally would be in a completely unmanaged app??

barbiomalefico
July 22nd, 2003, 03:29 AM
managed code is faster than unamaged code...

Andreas Masur
July 22nd, 2003, 05:53 AM
Originally posted by barbiomalefico
managed code is faster than unamaged code...
What? Do you have any reference for this...since I more than highly doubt the above...?

barbiomalefico
July 22nd, 2003, 08:23 AM
the memory allocation is surely faster than standard malloc... There is also an article on MSDN site.

Ciao

Andreas Masur
July 22nd, 2003, 05:24 PM
Originally posted by barbiomalefico
the memory allocation is surely faster than standard malloc... There is also an article on MSDN site.

Ciao
Sorry, but this does not convince me and is not a proof that in general manged code would be faster than unmanaged. I mean how was the abovew tested? May be you can post the link to the article?

DelboyDee
August 28th, 2003, 04:27 AM
Unmanaged code CAN be faster than managed code as managed code is compiled at runtime. Therefore the compiler can look at your PC hardware and compile code spcifically for say a P4 or the latest AMD etc Whereas VC6.0 output is targeted for P1 if not lower than that (Unless you specify otherwise of course but then your code wont work on all PC's)

There are other reasons but I can remember them off hand. The above is the main advantage that I have read from the book below which I would recommend for getting background knowledge of .NET. This book will convince you to go to .NET and give valid reasons for it if thats what your looking for.

References:
Applied Microsoft .NET framework programming by Jeffrey Richter. Microsoft Press
ISBN: 0-7356-1422-9

Delboy