Naming the Object File

Previous GNU Assembler Command-Line Options Next

There is always one object file output when you run as. By default it has the name a.out. You can use the '-o' option (which takes exactly one filename) to give the object file a different name.

Whatever the object file is called, as overwrites any existing file of the same name.