patchSimulavr: an AVR simulator - Patches: patch #3763, Python support (in addition to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3763: Python support (in addition to TCL; simulavrxx)

Submitter:  elonen
Submitted:  Tue 22 Feb 2005 03:25:18 PM UTC
   
 
Category:  feature add Priority:  5 - Normal
Status:  Remind Privacy:  Public
Assigned to:  rivetwa Open/Closed:  Closed
Component Version:  None

Jump to the original submission

Tue 24 Feb 2009 02:30:06 PM UTC, comment #6: 

autotools are not longer supported

Klaus Rudolph <zfrdh>
Group administrator
Mon 10 Oct 2005 11:59:37 AM UTC, comment #5: 

Attached patch is only a partial fix. I ran out of time/interest.

things I broke - the USE_SWIG should somehow encapsulate the added configure.ac

I didn't work out the python/tcl library naming scheme.

Using .la should eliminate liberty.a requirements at this is listed as a dependancy of libbfd

I hope this is of some use.

http://www.geocities.com/foetsch/python/swig_linux.htm
should help


cheers,
Daniel Black
Gentoo Developer

Anonymous
Thu 03 Mar 2005 10:52:11 AM UTC, comment #4: 

You can't call "Step(bool&)" from the Python code because of the ampersand. There's no Python equivalent for "reference to boolean".

elonen
Thu 03 Mar 2005 10:02:08 AM UTC, comment #3: 

Can you give me an idea why we need Systemclock::Step() for phython? The allready available method Systemclock::Step(bool&) should also work for python I hope.

Regards,
   Klaus

Klaus Rudolph <zfrdh>
Group administrator
Sat 26 Feb 2005 07:25:13 PM UTC, comment #2: 

I've accepted the python binding portion of the patch, but I'm not comfortable with adding step to the clock without running it by Klaus.

I'll check in what seems to work today (I ported anacomp demo to python, leaving the GUI alone, also)

One note: the names will likely need to change somehow. Certainly _simulavr.so should probably be something else...maybe python_simulavr.so, but that can wait. A consistent handling of these things should be considered first.

Stay tuned...

William <rivetwa>
Sat 26 Feb 2005 04:05:01 PM UTC, comment #1: 

I'm looking into this now. Your patch indeed worked as you describe for me. As stated, it needs some cleanup too. Good start though.

I'd like some python scripts to demonstrate it's use. If you have any, please send it. In the meantime I'll see if anacomp can be easily adapted.

I'll also look into SWIG documentation. It seems swig provides some help in using autotools within an autotools project.

William <rivetwa>
Tue 22 Feb 2005 03:25:18 PM UTC, original submission:  

This patch makes it possible to write simulations in Python, instead of or in addition to, TCL. I'm no autotools expert so this needs some cleaning up. Most notably: the Makefile says: -I/usr/include/python2.3 , which should obviously be replaced with some Python detection magic.

If you only need Python and no TCL, you can build the extension module like this:

($ ./bootstrap)
 $ ./configure
 $ cd src
 $ make python/_simulavr.so

elonen

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #8015:  simulavrxx-autoconf.patch added by None (11KiB - text/x-diff - simulavrxx-autoconf.patch (incomplete))
file #8446:  python-bind.diff added by elonen (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zfrdh (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-24 zfrdh Open/ClosedOpen Closed
    2005-10-10 None Attached File- Added simulavrxx-autoconf.patch, #5303
    2005-02-26 rivetwa CategoryNone feature add
        StatusNone Remind
        Assigned toNone rivetwa
    2005-02-22 elonen Attached File- Added python-bind.diff, #4218

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code