问题描述
首先,我是MacOS的新手,我想要的是能够看到llc -view-dag-combine1-dags sum.ll
的输出.在Mac上, llc 会在/tmp
目录中生成点,然后尝试打开App来显示点文件.我已经尝试过 Graphviz ,但是它不起作用(程序崩溃).我想尝试其他方法,例如 xdot .我通过brew install xdot
安装了它,但是不知道如何让MacOS使用我刚安装的xdot
打开点文件.
First of all, I am new to MacOS, and what I want is to be able to see the output of llc -view-dag-combine1-dags sum.ll
. On Mac, llc will generate dot in /tmp
directory, and try open App to show the dot file.I have tried Graphviz, but it doesn't work (the program crash). I would like try something else, like xdot for example. I install it by brew install xdot
, but don't know how to let the MacOS use the xdot
I just installed to open the dot file.
或者还有其他更好的工具来查看点文件吗?我想让事情尽可能简单.
Or any other better tool to view the dot file? I would like to keep thing as simple as possible.
推荐答案
自制软件具有 graphviz (仅命令行).我建议使用 MacPorts 安装 graphviz-gui ,这将使我们免于很多麻烦.
Homebrew has graphviz which is command line only. I would suggest using MacPorts to install graphviz-gui, that will save us from a lot of trouble.
这篇关于如何在Mac上打开点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!