Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.
/ astroem Public archive

libraries used in astrophysics, compiled to emscripten byte-code

License

Notifications You must be signed in to change notification settings

ericmandel/astroem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astroem: libraries used in astrophysics, compiled to emscripten byte-code

The libraries in this repository have been compiled to byte-code using emscripten. The byte-code files have .a extensions and are stored in the lib subdirectory. Include files have been copied to the include subdirectory.

Current libraries:

Current emcc compiler: 3.1.8

An emscripten-enabled project such as JS9 can copy the contents of the lib and include sub-directories into their own work space and then link against the byte-code libraries. For general emscripten build instructions, see the documentation at:

https://emscripten.org/docs/compiling/Building-Projects.html

For an example of the use of these particular libraries, see the Makefile in the astroem sub-directory of https://github.com/ericmandel/js9.

The libraries are compiled using the -O3 level of optimization (see the EMFLAGS variable in the top-level Makefile).

The shared libraries are compiled using the -O3 level of optimization along with the -s MAIN_MODULE=2, so they can be linked into a main module when you are using main and side modules.

Emscripten wants you to use the same optimization flags throughout the project, so if you use a different level of optimization, you probably want to change the EMFLAGS variable and rebuild the libraries by executing make all.

astroem is distributed under the terms of The MIT License.

Eric Mandel, Center for Astrophysics | Harvard & Smithsonian

About

libraries used in astrophysics, compiled to emscripten byte-code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published