Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Using ICL to compile C extensions

Reply
Thread Tools

Using ICL to compile C extensions

 
 
dayzman@hotmail.com
Guest
Posts: n/a
 
      01-04-2005
Hi,

Does anyone know how I can use "icl" (Intel C++) to compile C
extensions? I'm on Windows, and my Python is compiled using VS7.1
(binary distribution). Right now, when I run setup.py install, it uses
cl.exe (MSVC++ Toolkit 2003), and I would like to use icl because
MSVC++ 2003 does not support C99.
Any help will be much appreciated.

Cheers,
Michael

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      01-04-2005
wrote:
> Does anyone know how I can use "icl" (Intel C++) to compile C
> extensions? I'm on Windows, and my Python is compiled using VS7.1
> (binary distribution). Right now, when I run setup.py install, it uses
> cl.exe (MSVC++ Toolkit 2003), and I would like to use icl because
> MSVC++ 2003 does not support C99.


It should be possible to use this compiler, as long as you can link to
msvcr71.dll (i.e. as long as you have header files of the MS C library,
and an import library that links to msvcr71).

Whether you can use distutils to run the build process is a different
issue - you might need to extend distutils.

Regards,
Martin
 
Reply With Quote
 
 
 
 
John Carter
Guest
Posts: n/a
 
      01-10-2005
On 3 Jan 2005 21:18:13 -0800, wrote:

>Hi,
>
>Does anyone know how I can use "icl" (Intel C++) to compile C
>extensions? I'm on Windows, and my Python is compiled using VS7.1
>(binary distribution). Right now, when I run setup.py install, it uses
>cl.exe (MSVC++ Toolkit 2003), and I would like to use icl because
>MSVC++ 2003 does not support C99.
>Any help will be much appreciated.
>
>Cheers,
>Michael


I've not tried to do it using distutils yet, but when I was building
extension modules with my own make files and nmake all I had to do was
chance cl to icl and use the correct linker. You can tune the
performance playing with switches, but I got a factor 3 improvement on
a DCT type algorithm with out of the box settings.

I can send you an example makefile if you want

John Carter


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.icl file extension zybbok Computer Support 1 03-10-2006 04:45 PM
Watcom vs. gcc/icl/cl difference pemo C Programming 8 10-07-2005 08:03 PM
compiling under cygwin with intel windows compiler icl 8.0: is it a good idea? alex C++ 1 04-16-2004 03:45 PM
ICL and the Lake district Danny Computer Information 0 02-20-2004 10:21 PM
ICL? zaqona Computer Support 2 07-09-2003 09:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57