small exe for cross compile for linux-mips tool chain

N

niclane

Hi, I'm trying to port the python interpreter to an AP running OpenWRT
with the linux-mips tool chain. I'd like to have the interpreter as
small as possible and was wanted see if others in the community had
done this and if I could learn from them.

I've gotten fairly far into the cross compilation but not the reduction
in size of the interpreter. The scripts I need to run import only the
following modules: serial, sys, time, string, cStringIO, and struct.

If I only need my interpreter to use these modules how do I compile
python for use with only these modules? Would it be possible to get it
down to about 300k? or what would be a resonable size achievable given
the limited set of modules I have need? Currently I've got a size of
1.3 meg!

Thanks for your help.

Nic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,831
Latest member
HealthSmartketoReviews

Latest Threads

Top