Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Py++ based ctypes code generator
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roman Yakovenko  
View profile  
 More options Jan 20 2009, 2:16 pm
From: Roman Yakovenko <roman.yakove...@gmail.com>
Date: Tue, 20 Jan 2009 21:16:37 +0200
Local: Tues, Jan 20 2009 2:16 pm
Subject: [ANN] Py++ based ctypes code generator
Hello.

I would like to announce a new code generator for ctypes package.

The new code generator is integrated with Py++ package and reuse most

of its infrastructure:

* GCC-XML - generates an XML description of a C++ program from GCC's
internal representation

* pygccxml - powerful and simple Python package to work GCCXML generated file.

* Py++ design, code and utilities

* It was build with future ( ctypes-cpp ) functionality in mind.

* It has cross-platform ( Windows XP and Linux Ubuntu 8.10 ) unit tests

How it works:

1. Using pygccxml, the source files are parsed ( using pygccxml ) and

in-memory description of the code is created

2. .dll, .map or .so file is parsed ( pygccxml ) and exported symbols

list is created

3. Using decorated and undecorated names, mapping between declarations
and exported symbols is created.

4. The exported symbols and the mapping are used to:

  * define for what declarations the code should be generated

  * find out function calling convention

5. The last step - the code is generated

Supported functionality:

* shared libraries, that were compiled using C or C++ compiler

* free functions, including variable number of arguments

* [global|member] [named|anonymous] variables

* [named|anonymous|opaque|nested]  structures

* enumerations

* typedefs

Examples:

   Is it useful? - Yes. I created example, which generates code for
GMP( http://gmplib.org/ ) library. The following link
(http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/ex...)
will take you to the example.

   * dev - directory, which contains code generator source code

   * pygmplib - directory, which contains generated code - Python
package, which provides access to GMP lib functionality

   * test.py - Python script - tester.

Want to try?

   Windows users:

       http://sourceforge.net/project/showfiles.php?group_id=118209
contains few packages

       * ctypes code generator - stand alone executable, which
generates code for a .dll file

       * gccxml-setup - gccxml setup file

   Linux users:

       Sorry, no binaries :-(

       * you need to check-out( http://gccxml.org/HTML/Download.html)
and build gccxml ( http://gccxml.org/HTML/Install.html )

       * you need to check-out Py++ and pygccxml
(http://sourceforge.net/svn/?group_id=118209 )

       * wrap_library.py
(http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/sc...)
is the script, which generates code for .so file.

Your feedback is welcome.

--

Roman Yakovenko

C++ Python language binding

http://www.language-binding.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JosephLisee  
View profile  
 More options Jan 30 2009, 1:39 am
From: JosephLisee <jli...@gmail.com>
Date: Thu, 29 Jan 2009 22:39:48 -0800 (PST)
Local: Fri, Jan 30 2009 1:39 am
Subject: Re: Py++ based ctypes code generator
Is this "ctypes-cpp" going to be built?  I couldn't find any
references online.

-Joe L.

On Jan 20, 2:16 pm, Roman Yakovenko <roman.yakove...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »