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

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.

主站蜘蛛池模板: 彭水| 京山县| 余姚市| 侯马市| 德化县| 建平县| 南乐县| 汤原县| 平泉县| 镇沅| 青河县| 隆尧县| 刚察县| 祁阳县| 卢湾区| 申扎县| 罗山县| 界首市| 太白县| 日照市| 青神县| 托克托县| 新营市| 宿州市| 华蓥市| 镇坪县| 迁西县| 衡南县| 腾冲县| 呼玛县| 阿尔山市| 丽水市| 会东县| 聂拉木县| 宣城市| 扎鲁特旗| 肇源县| 梓潼县| 谢通门县| 古浪县| 荣昌县|