CLang libc,libc ++在Windows上,调试符号与Visual Studio兼容 [英] CLang libc, libc++ on Windows with debugging symbols compatible with Visual Studio

查看:772
本文介绍了CLang libc,libc ++在Windows上,调试符号与Visual Studio兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到信息,我在clang网站上看不到。
我想在Windows上尝试使用它,但我没有线索,如果它有自己的libc或使用破碎的libc从MS?

I'm trying to find info and I don't see it on clang web site. I'm thinking to try to use it on windows, but I have no clue if it has it's own libc or it uses broken libc from MS?

另一个问题:如果我用clang编译代码,我将能够使用visual studio作为调试器,例如是clang能够发出MS格式的调试符号(这是为什么我不想使用gcc;这是intel编译器可以做,但它使用MS的libc)。

another question: if i compile code with clang, will I be able to use visual studio as a debugger, e.g. is clang capable of emitting debugging symbols in MS format (this is the reason I don't want to use gcc; and this is something that intel compiler can do, but it uses MS's libc).

简而言之,我想能够使用visual studio作为调试器,但我需要在同一时间正常的c编译器与正常的lib c。

In short, I'd like to be able to use visual studio as a debugger, but I need at the same time decent real c compiler with normal lib c.

或者,也许有商业替代品。我已经读过dinkum出售商业libc为Win32和其他人,但我不知道什么是价格和如何得到它。

or, perhaps, there are commercial alternatives. I've read that dinkum sells commercial libc for Win32 and others, but I have no clue what's the price and how to get it.

推荐答案

您提出了两个完全不同的问题。我将回答有关使用Visual Studio作为调试器的示例。

You have asked two completely different questions. I will answer the one about using Visual Studio as a debugger.

这是目前不可能的。 Microsoft没有发布任何文档或代码来生成他们的PDB格式的文件,这是Visual Studio所使用的。有一些逆向工程的努力,但这些的结果还没有进入一般的开源工具。

This is not currently possible. Microsoft has not released any documentation or code necessary to produce files in their PDB format, which is what Visual Studio consumes. There has been some reverse engineering efforts, but results of those have not yet made their way into general Open Source tools.

GCC或Clang都不能生成PDB文件,因此不能使用Microsoft的调试器。一些商业编译器支持生成或使用PDB,但不支持GCC和Clang等Free / Open编译器。

Neither GCC nor Clang are capable of producing PDB files, and hence do not work with Microsoft's debugger. Some of the commercial compilers have support for generating or consuming PDB, but not the Free/Open compilers like GCC and Clang.

您可以在Windows上使用其他IDE, DWARF调试格式,由GCC和Clang使用。这样的编译器包括Code :: Blocks和Eclipse CDT。

You can use other IDEs on Windows which support the DWARF debugging format, used by GCC and Clang. Such compilers include Code::Blocks and Eclipse CDT.

这篇关于CLang libc,libc ++在Windows上,调试符号与Visual Studio兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆