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.

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.

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

Comments

Your Answer

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.