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

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.

主站蜘蛛池模板: 宿迁市| 蒲城县| 大化| 长宁区| 红河县| 马尔康县| 东乌| 延寿县| 南部县| 阜城县| 新干县| 内黄县| 平原县| 汝南县| 福海县| 三原县| 高台县| 赤水市| 永昌县| 中江县| 广西| 秦安县| 隆昌县| 龙门县| 梅河口市| 浮梁县| 汉沽区| 楚雄市| 揭阳市| 铅山县| 土默特右旗| 长春市| 南郑县| 河南省| 关岭| 中超| 商水县| 大名县| 南华县| 宁波市| 小金县|