Skip to content

Quick example of calling C code within python for future reference. This is helpful has Python's computations are very time expensive.

Notifications You must be signed in to change notification settings

jtcass01/Python-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-C

Quick example of calling C code within python for future reference. This is helpful as Python's computations are very time expensive.

Compiling

For Linux
$  gcc -shared -Wl,-soname,adder -o adder.so -fPIC add.c

For Mac
$ gcc -shared -Wl,-install_name,adder.so -o adder.so -fPIC add.c

About

Quick example of calling C code within python for future reference. This is helpful has Python's computations are very time expensive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published