gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Shared objects


From: Gaius Mulley
Subject: Re: [Gm2] Shared objects
Date: Thu, 01 Oct 2009 21:42:49 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Martin Kalbfuß <address@hidden> writes:

> Are the objects in the SO sub-directory simply objects build with
> -fPIC?

yes this is true.

> And does gm2 simply uses ld or is there something special
> about the linking process?

basically yes.  gm2 uses (gcc) ld to link the objects but it also
generates the main function and calling glue to call each module
in order of initialisation and finalisation.  You can see examples
of this after you perform a link, search for *_m2.cpp files and
examine the contents.

Also examine the gcc-4.1.2/gcc/gm2/examples/swig directory for ideas
as these swig Python examples all require Linux shared libraries
and all use the automatically generated *_m2.cpp files

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]