Re: [ng-spice-devel] Dynamic library support (fully working)


To ng-spice-devel@ieee.ing.uniroma1.it
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Thu, 09 Dec 1999 17:00:09 -0500
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Organization la Guilde
References <19991208002103.A5399@cgmd95104.chello.nl >
Reply-To ng-spice-devel@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com



Here's my patch for dynamic library support - it is against 
ngspice-rework-3 ( it(s totally indepandant from Arno's patches)

I compile bsim1,bsim2 and bsim2 as shared libraries. You don't
need to do 'make install' for complilation to succeed. Shared libs
are installed by default in /usr/local/lib/ngspice-rework

Only very large models should be compiled a shred libraries, since
a shared librarie is always a bit bigger than a static library. 

The next step would be to use the 'dlopen' mechanism to load shared libs
at request only (but this has to be done in the code itself I believe,so
I suggest leaving it for our GPL'd simulator)


manu

patch.manu.bz2


Partial thread listing: