This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to get GCC to compile to binary, but in raw format NOT object
- From: John Love-Jensen <eljay at adobe dot com>
- To: "DAWE,STEVE (HP-UnitedKingdom,ex2)" <steve dot dawe at hp dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 15 Sep 2003 10:50:45 -0500
- Subject: Re: How to get GCC to compile to binary, but in raw format NOT object
Hi Steve,
You want a DSO (dynamic shared object).
Generate your code into a shared object (a .so in Unix-land, a .dll in
Windows-land, a .library in Amiga-land), and -- in Unix-land -- use dlopen
and the other dlxxxx functions when you want to access your routine
dynamically. Windows and Amiga have equivalent mechanisms.
--Eljay