12.07.2015 Views

Introduction In the last 30 years we have made great progress both ...

Introduction In the last 30 years we have made great progress both ...

Introduction In the last 30 years we have made great progress both ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Shared libraries of matrix elementsmicrOMEGAs transfers C-code of matrix elements into shared librarygcc -shared -o library_name.so matrix_element_files.cAll shared libraries of matrix elements for given MODEL are stored inMODEL/work/so_generated/directory. They are recompiled automatically if <strong>the</strong> model in changed.Shared library can be linked dynamicaly in runtime. See man for dlopen,dlsym.* =========== file dltest.c =========*/#include #include int main(void){ void *handle; double (*arcsin)(double);handle = dlopen("/usr/lib/libm.so",RTLD_NOW);arcsin = dlsym(handle,"asin");printf ("%f\n", 2*(*arcsin)(1));}║$ gcc dltest.c -o dltest -rdynamic -ldl║$ ./dltest║ 3.14159325

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!