2

I wrote a program in python (using standard python libraries) long ago. Now I need to write the same program in standard C due to the lack of python support for that device.

Please suggest me programs or conversion method to convert that python code into C code.

Thanks in advance.

asked Aug 8, 2010 at 13:45

2 Answers 2

4

Shedskin could do the trick:

Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python programs into optimized C++. It can generate stand-alone programs or extension modules that can be imported and used in larger Python programs.

answered Aug 8, 2010 at 13:48
Sign up to request clarification or add additional context in comments.

1 Comment

Shedskin is the best option, but unfortunately, not all modules in the SPL work
1

So there is a C library for the device? You should be able to wrap the C library with a Python module.

You can also use cython to write the interface to the C code

answered Aug 9, 2010 at 1:09

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.