“<”是什么意思?和“>”在 MIPS 评论中?

发布于 2024-12-03 02:43:01 字数 299 浏览 6 评论 0 原文

我最近开始通过 MIPS 学习汇编,我注意到,由于某种原因,当在“文本”窗口中显示原始源代码时,QtSpim 会删除尖括号内的注释 内的任何内容:

[snip]
sll $0, $0, 0    # this text shows up in QtSpim
sll $0, $0, 0    # and this <but not this>
[snip]

这是一些注释注释吗我找不到任何关于 MIPS 本身的功能,或者它只是 QtSpim 中的一个奇怪的错误?

I have recently begun learning assembly via MIPS, and I noticed that for some reason, QtSpim removes anything inside comments and between angle brackets when showing the original source in the "Text" window:

[snip]
sll $0, $0, 0    # this text shows up in QtSpim
sll $0, $0, 0    # and this <but not this>
[snip]

Is this some comment annotating feature of MIPS itself I can't find anything about, or is it just a bizarre bug in QtSpim?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

肥爪爪 2024-12-10 02:43:01

嗯... # 是 MIPS 中开始注释的字符,因此该行中 # 后面的所有内容都应该被忽略。编辑可能有点困惑,没有正确处理评论。或者斜体可能只是一个不相关的原因......

Well... # is the character to start a comment in MIPS, so everything after the # on that line should be ignored. It's possible that the editor is getting a bit confused and not handling the comment correctly. Or maybe there's just an unrelated reason for the italics...

空心空情空意 2024-12-10 02:43:01
# if x < 0

这是一条评论,需要阅读

如果 x 小于零

关于您对该注释后面的行的注释是斜体的,我猜测这是语法突出显示中的某种错误。您是否尝试过简单地删除注释,或将注释更改为不包含小于号的内容?

# if x < 0

That is a comment, to be read

if x is less than zero

With regards to your comment about the lines following this comment being italicized, I'm going to guess it's some sort of bug in the syntax highlighting. Have you tried simply removing the comment, or changing the comment to something that does not including the less than symbol?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文