C ++为字节code编译器CLR?

编程入门 行业动态 更新时间:2024-10-26 08:30:12
本文介绍了C ++为字节code编译器CLR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我希望能够使其在CLR的托管运行时中运行编译C / C ++库。有几个工具了解与JVM(的 NestedVM , LLJVM 等),但我似乎无法找到任何的CLR。有没有人尝试这样做?

I'd like to be able to compile a C/C++ library so that it runs within a managed runtime in the CLR. There are several tools for doing this with the JVM (NestedVM, LLJVM, etc) but I can't seem to find any for the CLR. Has anyone tried doing this?

推荐答案

微软已经提供了与Visual Studio这样的工具。 C ++编译器 cl.exe时接受 / CLR 选项告诉它来生成管理code,而不是本地code。请参阅MSDN文档的如何:迁移到/ CLR 的有关更改本地项目信息支持托管code。

Microsoft already provides such a tool with Visual Studio. The C++ compiler cl.exe accepts the /clr option to tell it to generate managed code instead of native code. See the MSDN document How To: Migrate to /clr for information on changing your native project to support managed code.

更多推荐

C ++为字节code编译器CLR?

本文发布于:2023-11-10 06:37:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574629.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   字节   code   CLR

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!