Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58796

Talking to a 'C' program

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 <johnhpote@o2.co.uk>
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 <johnhpote@o2.co.uk>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2220.1383920660.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Talking to a 'C' program John Pote <johnhpote@o2.co.uk> - 2013-11-08 14:23 +0000
  Re: Talking to a 'C' program Grant Edwards <invalid@invalid.invalid> - 2013-11-08 15:00 +0000
    Re: Talking to a 'C' program John Pote <johnhpote@o2.co.uk> - 2013-11-08 16:08 +0000

csiph-web