macos 在 Mac 上编写和学习程序集
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7315595/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Writing and learning assembly on a Mac
提问by Jumhyn
I recently decided that I wanted to try learning how to program in assembly. Having a 2011 model MBP, I was not able to find much info on how to write and execute assembly code on my computer. If anyone could point me in the right direction on this (as well as provide any useful tutorials) it would be greatly appreciated.
我最近决定尝试学习如何在汇编中编程。拥有 2011 型号的 MBP,我无法找到有关如何在我的计算机上编写和执行汇编代码的太多信息。如果有人能指出我正确的方向(并提供任何有用的教程),将不胜感激。
采纳答案by Jumhyn
This should help you further: Learn NASM on OS X.
这应该可以帮助您进一步:在 OS X 上学习 NASM。
回答by Rudy Velthuis
Try this article: Assembly language programming under OS X with NASM. It won't teach you x86 or x86-64 assembly language, but it tells you how to use it under OS X. There are many tutorials for x86 assembly language.
试试这篇文章:在 OS X 下使用 NASM 进行汇编语言编程。它不会教你 x86 或 x86-64 汇编语言,但它会告诉你如何在 OS X 下使用它。 x86 汇编语言有很多教程。