all groups > visual c > september 2004 >
You're in the

visual c

group:

64-bit & Managed C++ vs. C++/CLI



64-bit & Managed C++ vs. C++/CLI Chris Wood
9/30/2004 5:15:05 AM
visual c: I have a complex codebase developed in Managed C++ that I am not particularly
looking forward to porting to C++/CLI :) I'd like to know what the most
compelling arguments for doing so are so I can justify the cost. For
example, will Whidbey generate 64-bit assemblies for Managed C++, or only for
C++/CLI? If we have to move to C++/CLI to get 64-bit support, then that's a
pretty good reason to move.

Also, I've heard rumors about a tool that may ship with Whidbey that will
translate Managed C++ into C++/CLI. Is this true? How "smart" will this
tool be? If it exists, is there a beta anywhere I can check out?

Thanks!
Re: 64-bit & Managed C++ vs. C++/CLI Carl Daniel [VC++ MVP]
9/30/2004 6:50:34 AM
[quoted text, click to view]

A tool is being developed. Last I heard, exactly how it will be made
available hadn't been worked out, but the plan is to make it available
(possibly through gotdotnet or something like that). The tool's being
developed by Stan Lippman - you can read about it in various entries on his
blog: http://blogs.msdn.com/slippman. In this entry
http://blogs.msdn.com/slippman/archive/2004/08/21/218487.aspx, Stan talks
about a translation guide that he's been developing.

HTH

-cd

Re: 64-bit & Managed C++ vs. C++/CLI Chris Wood
10/1/2004 7:43:08 AM
Thanks Carl; I appreciate your responce.

My concern about 64-bit is that I haven't heard if it will be supported for
Managed C++. I expect that C++/CLI will support it, if only through the
/clr:pure switch. But is there any support for Managed C++? I was expecting
not, since the syntax is being replaced with C++/CLI. If that's the case I'd
like to know sooner rather than later, so I can budget time for the
migration. Do you have any information on this?

Thanks again,
-- Chris

[quoted text, click to view]
Re: 64-bit & Managed C++ vs. C++/CLI Carl Daniel [VC++ MVP]
10/1/2004 11:30:09 AM
[quoted text, click to view]

That part I don't know. I don't believe that it's necessary to use
/clr:pure, but if I'm understanding correctly, what you want to know is if
/clr:oldSyntax will support 64-bit development.

I'd suggest asking on microsoft.private.whidbey.cplusplus.codegen.
Information about access to the Whidbey (semi-)private newsgroups can be
found at:

http://communities.microsoft.com/newsgroups/ICP/whidbey/US/welcomePage.htm

-cd

Re: 64-bit & Managed C++ vs. C++/CLI Brandon Bray [MSFT]
10/1/2004 12:29:41 PM
[quoted text, click to view]

Since I'm here now, I can answer the question. Portability between 32-bit
and 64-bit platforms for binary images is more work than just switching
syntaxes. That said, the new syntax (sometimes called C++/CLI) is the only
syntax that is going to support 64-bit portability. New compilation modes
like /clr:safe and /clr:pure are only supported for the new syntax.

To get reasonably supported 64-bit portability, you'll need to compile with
the /clr:safe mode. The language subset there is similar to C# with a few
C++ features like templates. Many things that can be done in /clr:pure are
not portable (like calling native code). This isn't to say that it cannot be
done with /clr:pure, but it's probably more difficult than one would
realize. Converting code between /clr:pure and /clr:safe is likely going to
be the same cost as rewriting the code.

Hopefully, that doesn't sound too discouraging. I will say that converting
between the old syntax and the new syntax is not as difficult as it may
sound. I've done it by hand a few times, and I have a rate of about 2000
lines per hour. With the assistance of tools, it's sure to be faster.

Cheerio!

--
Brandon Bray, Visual C++ Compiler http://blogs.msdn.com/branbray/
Bugs? Suggestions? Feedback? http://msdn.microsoft.com/productfeedback/

Re: 64-bit & Managed C++ vs. C++/CLI Ronald Laeremans [MSFT]
10/1/2004 1:16:19 PM
Assuming you are willing to have separate images for 32 and 64 bits (like
you have to do for anything native anyway), we do support that fully in
Whidbey.

Including /clr:oldsyntax. But as Brandon said, I really would encourage you
to port that over as soon as possible. We will try to get a translation tool
out around Bea 2 timeframe.

Ronald Laeremans
Visual C++ team

[quoted text, click to view]

Re: 64-bit & Managed C++ vs. C++/CLI Justin Shen
10/3/2004 12:57:55 PM
According to the latest MSDN article, such a tool will be release at Whidbey
beta 2


"Chris Wood" <ChrisWood@discussions.microsoft.com> дÈëÏûÏ¢
news:7BD2F60F-086C-4B87-9737-69333CECDD0D@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button