[Cython] getting rid of C' stlib strcmp() in generated sources
Robert Bradshaw
robertwb at math.washington.edu
Sat Mar 7 03:38:42 CET 2009
On Mar 6, 2009, at 6:32 PM, Lisandro Dalcin wrote:
> I'm thinking on removing dependencies on the C stdlib... Then, I'm
> proposing to use a custom implementation (utility code) for the few
> places were strcmp() is used... strcmp() (at least for mpi4py) is the
> only (link-time) dependency on the C stdlib...
Interesting.
> Why I'm asking this? Just because a guy trying to build mpi4py in a
> supercomputing environment (SGI Altix/Itanium machines, Intel
> compilers, SGI MPI implementation, and system Python 2.4 built with
> some GCC version) had so many headaches to make it work... Perhaps the
> problem was that the build environment was a bit broken, but the only
> way to make it work was to fix mpi4py to not use ANY C stdlib call...
> The only missing bit is strcmp(), as Cython generates code using it...
>
> As strcmp() is trivial to implement, Cython uses it in just a few
> places, and mainly for work around some deficiencies in the Python
> C-API, then I what to remove this dependency from Cython generated
> code.
Sure, I'm fine with that.
>
- Robert
More information about the Cython-dev
mailing list