[mercury-users] shared libraries

Michael Day mikeday at corplink.com.au
Thu Nov 30 12:43:52 AEDT 2000


> Currently the default on Linux is to use static libraries rather than
> shared libraries.  (It ought to be the other way round, but unfortunately
> implementing that is a little tricky and we haven't done it yet.)
> So you to use shared libraries on Linux, you need to use
> `mmc --pic-reg --link-flags --shared', or put `MGNUCFLAGS=--pic-reg'
> and `MLFLAGS=--shared' in your Mmakefile.

Ah perfect! Thank you very much.

> See README.Linux for details.

<Coughs embarrassedly and reads manual>

Hmm, so there's a performance hit for using shared libraries on Linux,
because it requires the compiler to generate position independent code?
That's unfortunate. Is it less of an issue in hlc grade?

Michael


--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list