problem using ctypes with MMX intrinsics

Discussion in 'Python' started by dcharno, Oct 15, 2008.

  1. dcharno

    dcharno Guest

    Is it possible to use ctypes with a shared library which uses MMX/SSE
    intrinsics? I can load the library and access functions inside it, but
    I getting a seg fault when I hit one of the intrinsics. I'm wondering
    if there might be some sort of stack alignment problem.

    I am using gcc version 4.2.3 and Python 2.5.2 on Ubuntu 8.04.

    Any suggestions would be helpful.
     
    dcharno, Oct 15, 2008
    #1
    1. Advertising

  2. In message <>, dcharno
    wrote:

    > I can load the library and access functions inside it, but
    > I getting a seg fault when I hit one of the intrinsics.


    I assume that SIGSEGV indicates some (mis)alignment issue. If the
    instructions were not valid, you'd get SIGILL instead.
     
    Lawrence D'Oliveiro, Oct 15, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian K. Michalk

    64 bit add and accumulate with MMX

    Brian K. Michalk, Sep 20, 2003, in forum: Perl
    Replies:
    6
    Views:
    662
    Terje Mathisen
    Sep 20, 2003
  2. Soulblazer

    need help with mmx (vc++)

    Soulblazer, Jul 31, 2004, in forum: C++
    Replies:
    1
    Views:
    406
    Victor Bazarov
    Jul 31, 2004
  3. SSE[23] intrinsics for gcc?

    , Oct 8, 2006, in forum: C Programming
    Replies:
    3
    Views:
    1,176
    Erik de Castro Lopo
    Oct 8, 2006
  4. Szyk
    Replies:
    1
    Views:
    868
    Victor Bazarov
    Oct 29, 2011
  5. Melzzzzz
    Replies:
    3
    Views:
    424
    Melzzzzz
    Oct 14, 2012
Loading...

Share This Page