官术网_书友最值得收藏!

Installing GAS

GAS is distributed as part of the binutils package, but since it is the default backend for GCC (GNU Compilers Collection), it would be better if we install GCC. In fact, installing GCC instead of binutils alone will slightly simplify the creation of executables out of our Assembly code, as GCC would automatically handle a few tasks during the linking process. Despite having its roots in *nix systems, GAS is also available for Windows and may be downloaded from https://sourceforge.net/projects/mingw-w64/ (just remember to add the bin subfolder in the installation folder to the PATH environment variable). Installation on Windows is quite straightforward--simply follow the steps in the GUI installation wizard.

Another option for those of us using Windows is "Bash on Windows;" however, this is only available on 64-bit Windows 10 with Anniversary/Creators Update installed. The installation steps for GAS would then be the same as those for running Ubuntu or Debian Linux.

As this book is intended for developers, it might be safe to assume that you already have it installed on your system, if you are on a *nix system, however, let's leave assumptions aside and install GAS.

主站蜘蛛池模板: 荔波县| 双牌县| 赤壁市| 汉寿县| 南平市| 哈密市| 监利县| 吉木乃县| 来凤县| 万全县| 邵东县| 冷水江市| 海淀区| 社旗县| 家居| 漳平市| 获嘉县| 钦州市| 长顺县| 拉孜县| 区。| 深泽县| 东宁县| 兖州市| 安陆市| 北票市| 铁岭县| 屏东市| 辽源市| 共和县| 汕尾市| 兴化市| 嘉定区| 浪卡子县| 昌乐县| 白银市| 平邑县| 广宗县| 德令哈市| 漳平市| 宜宾市|