4.2. Using the GNU Assembler

To produce an object file from an assembly language program, run the as tool as follows:
scl enable devtoolset-4 'as [option...] -o object_file source_file'
This creates an object file named object_file in the current working directory.
Note that you can execute any command using the scl utility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent. This allows you to run a shell session with Red Hat Developer Toolset as as default:
scl enable devtoolset-4 'bash'

Note

To verify the version of as you are using at any point, type the following at a shell prompt:
which as
Red Hat Developer Toolset's as executable path will begin with /opt. Alternatively, you can use the following command to confirm that the version number matches that for Red Hat Developer Toolset as:
as -v