Hi all,

if you're using Intel PRO C/C++ 6.0 instead of Microsoft
Visual C/C++ 6.0 compiler to get FAR MORE OPTIMIZED CODE,
then follow these instructions:

refer to INSTALL.W32:
=====================

1.) Execute "perl Configure VC-WIN32".

2.) Execute "ms\do_masm" or "ms\do_nasm" or "ms\do_ms" or
    "ms\do_nt".

SPECIAL INTEL PREPARATION:
==========================

3.) Modify "ms\nt.mak" and/or "ms\ntdll.mak":
    a) substitute "CC=cl" by "CC=icl"
    b) substitute "LINK=link" by "LINK=xilink"
    c) add to "LFLAGS" (nt.mak) or "MLFLAGS" (ntdll.mak)
       the switch "/LIBPATH:{INTELC-BASE}\IA32\LIB" where
       {INTELC-BASE} is the base directory of your Intel C
       compiler installation directory

4.) Execute a "nmake -f ms\nt.mak" or "nmake -f ms\ntdll.mak"
    and be prepared for errors. The current OpenSSL sources
    (as of version 0.9.6g) contain BIO_printf's with more
    arguments than required by the format string. Correct these
    ones (just by deleting empty strings as the last arguments).
    Furthermore, in apps\pkcs8.c, there are several printf's
    specifying a ",outfile", which is not required. Correct these,
    too.
    After each correction, just restart "nmake" until it compiles
    successfully.

INTEL OPTIMIZATION:
===================

Now, you can add "fancy" optimization parameters to "CFLAG" in the
makefiles:

a) Optimization for Intel Pentium II:
-------------------------------------
CFLAG= /MD /W3 /WX /G6 /Ox /O2 /Ob2gyti /Gs0 /QxiM /GF /Gy /nologo 
-DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM 
-DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32 (or: /Fdout32dll)

b) Optimization for Intel Pentium III:
--------------------------------------

CFLAG= /MD /W3 /WX /G6 /Ox /O2 /Ob2gyti /Gs0 /QxiMK /GF /Gy /nologo 
-DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM 
-DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32 (or: /Fdout32dll)

c) Optimization for Intel Pentium IV:
-------------------------------------
CFLAG= /MD /W3 /WX /G7 /Ox /O2 /Ob2gyti /Gs0 /QxiMKW /GF /Gy /nologo 
-DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM 
-DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32 (or: /Fdout32dll)

Please keep in mind that this libraries will only work with the shown
processors and may generate "invalid opcode exceptions" on other
processors.
My experiences demonstrate that an Intel Pentium III version also
runs on an AMD Athlon XP processor. To be safe, just execute the
tests (ms\test.bat) !!!

Best, Ingo A. Kubbilun.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to