This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to get GCC to compile to binary, but in raw format NOT object
- From: "DAWE,STEVE (HP-UnitedKingdom,ex2)" <steve dot dawe at hp dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 15 Sep 2003 16:46:39 +0100
- Subject: How to get GCC to compile to binary, but in raw format NOT object
Hi,
I want to be able to compile a C function to binary using GCC, but not in
object format (.o) with it's associated bagagge. I'd rather a 'raw' binary
which contains just the code (and maybe some constants) that is compile. I
do not want to use this file to link this code into an executable in order
to run it, I want to be able to store it in a file, load it into memory
dynamically and then execute it when it is needed, perhaps discarding it
when it is no longer needed.
Is there an option to do this?
Regards,
Steve