This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc assembler
- From: Ian Lance Taylor <iant at google dot com>
- To: ranjith kumar <ranjit_kumar_b4u at yahoo dot co dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 01 Jul 2007 18:53:51 -0700
- Subject: Re: gcc assembler
- References: <303801.35858.qm@web27406.mail.ukl.yahoo.com>
ranjith kumar <ranjit_kumar_b4u@yahoo.co.uk> writes:
> Is it possible to write an assembly program(by me) and
> compile it to produce executable file(a.out)???
Well, sure, if you know how to write the assembler. Just create
FILE.s, and run "gcc -o EXE FILE.s". The gcc driver will invoke the
assembler to create a .o file, and then run the linker as usual.
Ian