is an optimizing Python-to-C++ compiler, which can also be used as a stand-alone C++ optimizer and as a tool for creating self-modifying code. It is designed to be easy to use and to produce optimized, readable and maintainable code.
Shed Skin allows for the conversion of Python code into optimized C++ code for faster execution.
* Compiles standard Python 2.4 and 2.5 programs to C++.
* Generates optimized and readable code (with optimizations like loop-unrolling and strength reduction).
* Supports integer and floating point numbers, strings, lists, tuples, dictionaries, sets and functions.
* Automatically detects and eliminates most Python runtime checks.
* Detects and eliminates unused variables and unreachable code.
* Can be used as a stand-alone C++ optimizer.
* Generates self-modifying code, allowing for further optimizations.
* Includes a C++ standard library which provides basic functionality like file access, system calls and threading.
* Includes a tool for creating self-modifying code, allowing for further optimizations.
* Supports the Python ctypes module for dynamic linking to external C libraries.
* Supports a variety of platforms, including Linux, Windows and Mac OS X.
To get started with Shed Skin, first download and install the software. Then, create a new Python program or load an existing one, and run Shed Skin to compile it to C++. You can then compile the generated C++ code using your system's C++ compiler, or use the included build system to compile it automatically.
Once your program is compiled, you can run it directly or link it with other C++ libraries. Shed Skin's optimization features can also be used on existing C++ programs, allowing you to further optimize them for speed or size.
Shed Skin also includes a tool for creating self-modifying code, which can be used to further optimize your programs. The tool allows you to create self-modifying code that is optimized for speed or size, and can be used to automatically optimize loops and other sections of code.
Shed Skin is a powerful and easy to use Python-to-C++ compiler, which can also be used as a stand-alone C++ optimizer and as a tool for creating self-modifying code. It is designed to be easy to use and to produce optimized, readable and maintainable code.