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

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

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!
-- Chris
Nov 17 '05 #1
6 2072
Chris Wood wrote:
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?


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/archi...21/218487.aspx, Stan talks
about a translation guide that he's been developing.

HTH

-cd
Nov 17 '05 #2
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

"Carl Daniel [VC++ MVP]" wrote:
Chris Wood wrote:
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?


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/archi...21/218487.aspx, Stan talks
about a translation guide that he's been developing.

HTH

-cd

Nov 17 '05 #3
Chris Wood wrote:
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?


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/new...elcomePage.htm

-cd
Nov 17 '05 #4
> Chris Wood wrote:
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?


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/
Nov 17 '05 #5
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

"Brandon Bray [MSFT]" <br******@online.microsoft.com> wrote in message
news:eF****************@TK2MSFTNGP15.phx.gbl...
Chris Wood wrote:
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?


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/

Nov 17 '05 #6
According to the latest MSDN article, such a tool will be release at Whidbey
beta 2
"Chris Wood" <Ch*******@discussions.microsoft.com> дÈëÏûÏ¢
news:7B**********************************@microsof t.com...
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!
-- Chris

Nov 17 '05 #7

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

Similar topics

1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
56
by: Dave Vandervies | last post by:
I just fixed a bug that some of the correctness pedants around here may find useful as ammunition. The problem was that some code would, very occasionally, die with a segmentation violation...
0
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, Win XP boots from C and Win XP 64 boot from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32)...
10
by: krunalb | last post by:
Hi, I am trying to shift unsigned long long value by 64 bits and this is what i get #include <stdio.h> int main() { unsigned short shiftby= 64;
1
by: =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?= | last post by:
I have read many things about this but I haven't got a clear vision on what to do if anything about this. I have a system that tries to find holes in my web site. One of the things it has...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.