Re: [BangPypers] converting python to assembly..

2012-06-02 Thread Noufal Ibrahim
Vishal writes: [...] > I think the main point of doing a Python-to-C conversion followed by > creation of a dll which is re-imported into Python is performance. > Obfuscation is a by-product of this process. But if code-protection is more > paramount...it can be the considered the other way rou

Re: [BangPypers] converting python to assembly..

2012-06-02 Thread Vishal
On Sat, Jun 2, 2012 at 12:10 AM, Sriram Karra wrote: > On Fri, Jun 1, 2012 at 6:44 PM, Vishal wrote: > > > > > > > a) "test.py" a very simple 1KB python file with a main function > > > b) "_c_test.c" a 35KB file that is generated by 2c-py > > > > > > (b) gets generated by the following cmd line:

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Sriram Karra
On Fri, Jun 1, 2012 at 6:44 PM, Vishal wrote: > > > > a) "test.py" a very simple 1KB python file with a main function > > b) "_c_test.c" a 35KB file that is generated by 2c-py > > > > (b) gets generated by the following cmd line: > > > > > 2c-py -c test.py > > > > As you can see the 'c' file gene

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
Sending again. Since the files did not go through... :( On Fri, Jun 1, 2012 at 4:41 PM, Vishal wrote: > >> Hello Sriram, > > I think there is some confusion as to what the general-case Python to C > compiler's create. So I made a test case and have attached the input and > output files. hopeful

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Sriram Karra
On Fri, Jun 1, 2012 at 3:25 PM, Vishal wrote: > 2c-python seems to convert python to its own C equivalent which is then > compiled and can be loaded dynamically into the interpreter. Cython / Swig > etc can do this already. What interpreter are you referring to? >From your original email: "I

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
On Fri, Jun 1, 2012 at 1:01 PM, Sriram Karra wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > > I am looking for something more "simple", i.e. instead of writing C and > > compiling it to machine instructions...write python (restricted set..may > > be) and convert it to machine ins

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Anand Chitipothu
On Fri, Jun 1, 2012 at 1:07 PM, Anand Chitipothu wrote: > > > On Fri, Jun 1, 2012 at 12:29 PM, Vishal wrote: > >> On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < >> abpil...@gmail.com> wrote: >> >> > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: >> > >> > > Hello, >> > > >> > > Do

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Anand Chitipothu
On Fri, Jun 1, 2012 at 12:29 PM, Vishal wrote: > On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < > abpil...@gmail.com> wrote: > > > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > > > Hello, > > > > > > Does anybody know of any effort that can covert a relatively static > > ve

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Sriram Karra
On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > I am looking for something more "simple", i.e. instead of writing C and > compiling it to machine instructions...write python (restricted set..may > be) and convert it to machine instructions. > Have no personal experience with this sort of thin

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > Hello, > > > > Does anybody know of any effort that can covert a relatively static > version > > of python code into assembly for use with microcontrolle

Re: [BangPypers] converting python to assembly..

2012-05-31 Thread Anand Balachandran Pillai
On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > Hello, > > Does anybody know of any effort that can covert a relatively static version > of python code into assembly for use with microcontrollers ? > Just wondering what is the need for this ? If you are coding in Python in the first place do y

[BangPypers] converting python to assembly..

2012-05-30 Thread Vishal
Hello, Does anybody know of any effort that can covert a relatively static version of python code into assembly for use with microcontrollers ? CorePy did it but not for microcontrollers P14p (or PyMite) actually creates a python interpreter in C and puts it inside the microcontroller, and its GP