3.5. Assembling a Program

GNU assembler is part of GNU binary utilities package. To get the latest binutils packages, you can download it from ftp://ftp.gnu.org/gnu/binutils/. After downloading you have to use the tar command to extract source code files. The latest version at the time of writing this chapter is 2.12 and the tar command will create a directory binutils-2.12 automatically. I have extracted it in /opt directory, so the source code directory is /opt/binutils-2.12. I created another directory /opt/binutils-build to build the package. Running the configure script is the first step towards building binary utilities package. The following sequence of commands does all of these steps.

[root@conformix /opt]# cd /opt [root@conformix /opt]# ...

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.