Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'algorithm': 0.04; 'compiler': 0.07; "subject:' ": 0.07; 'wrapper': 0.09; 'python': 0.11; "'c'": 0.16; 'rs232': 0.16; 'subject:program': 0.16; 'appropriate': 0.16; 'library': 0.18; 'all,': 0.19; 'module': 0.19; 'everyone,': 0.19; "python's": 0.19; 'environment': 0.24; 'question': 0.24; 'appreciated': 0.26; 'logging': 0.26; 'task': 0.26; 'idea': 0.28; 'testing': 0.29; 'correct': 0.29; 'appreciated.': 0.29; 'ease': 0.30; 'code': 0.31; 'python).': 0.31; 'up.': 0.33; "i'd": 0.34; 'test': 0.35; 'functions.': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'unit': 0.37; 'to:addr :python-list': 0.38; 'embedded': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'easy': 0.60; 'john': 0.61; 'first': 0.61; 'header:Message-Id:1': 0.63; 'myself': 0.63; 'gcc?': 0.84; 'controller': 0.91; 'offerings': 0.91; 'pc.': 0.93 From: John Pote Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Talking to a 'C' program Date: Fri, 8 Nov 2013 14:23:17 +0000 To: python-list@python.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383920660 news.xs4all.nl 15952 [2001:888:2000:d::a6]:34392 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58796 Hi all, I have the task of testing some embedded 'C' code for a small = micro-controller. Thought it would be a good idea to test it on the PC = first to make sure the algorithm is correct then perhaps test it on the = controller via RS232 and an appropriate wrapper round the 'C' functions. On the PC I can use Python's unit test library module and logging to = create a nice and easy to use environment (I like Python). So my = question is how to communicate from Python to the C module on the PC. = What I'd like is simplicity and ease of setting up. All I can think of = myself is to use sockets. Any ideas on how to do this would be gratefully appreciated. Also as I don't have any microsoft offerings of a C compiler any = suggestions as to a suitable C compiler for a PC appreciated as well. = llvm? mingw? gcc? Thanks a lot everyone, John=