projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wp-x86_64.pl: ~10% performance improvement.
[oweals/openssl.git]
/
crypto
/
des
/
des-lib.com
diff --git
a/crypto/des/des-lib.com
b/crypto/des/des-lib.com
index 40a34bb0dd046f16d192813f4d044be57ecd818c..348f1c047093b197031707b2070a41046af14608 100644
(file)
--- a/
crypto/des/des-lib.com
+++ b/
crypto/des/des-lib.com
@@
-9,7
+9,7
@@
$! Changes by Richard Levitte <richard@levitte.org>
$!
$! This command files compiles and creates the
$! "[.xxx.EXE.CRYPTO.DES]LIBDES.OLB" library. The "xxx" denotes the machine
$!
$! This command files compiles and creates the
$! "[.xxx.EXE.CRYPTO.DES]LIBDES.OLB" library. The "xxx" denotes the machine
-$! architecture of A
XP
or VAX.
+$! architecture of A
LPHA, IA64
or VAX.
$!
$! It was re-written to try to determine which "C" compiler to try to use
$! or the user can specify a compiler in P3.
$!
$! It was re-written to try to determine which "C" compiler to try to use
$! or the user can specify a compiler in P3.
@@
-45,25
+45,34
@@
$!
$!
$! Check Which Architecture We Are Using.
$!
$!
$! Check Which Architecture We Are Using.
$!
-$ IF (F$GETSYI("CPU").
GE
.128)
+$ IF (F$GETSYI("CPU").
LT
.128)
$ THEN
$!
$ THEN
$!
-$! The Architecture Is
AXP.
+$! The Architecture Is
VAX
$!
$!
-$ ARCH :=
AXP
+$ ARCH :=
VAX
$!
$! Else...
$!
$ ELSE
$!
$!
$! Else...
$!
$ ELSE
$!
-$! The Architecture Is
VAX
.
+$! The Architecture Is
Alpha, IA64 or whatever comes in the future
.
$!
$!
-$ ARCH := VAX
+$ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
+$ IF (ARCH .EQS. "") THEN ARCH = "UNK"
$!
$! End The Architecture Check.
$!
$ ENDIF
$!
$!
$! End The Architecture Check.
$!
$ ENDIF
$!
+$! Define The OBJ Directory Name.
+$!
+$ OBJ_DIR := SYS$DISK:[--.'ARCH'.OBJ.CRYPTO.DES]
+$!
+$! Define The EXE Directory Name.
+$!
+$ EXE_DIR :== SYS$DISK:[--.'ARCH'.EXE.CRYPTO.DES]
+$!
$! Check To Make Sure We Have Valid Command Line Parameters.
$!
$ GOSUB CHECK_OPTIONS
$! Check To Make Sure We Have Valid Command Line Parameters.
$!
$ GOSUB CHECK_OPTIONS
@@
-72,10
+81,6
@@
$! Tell The User What Kind of Machine We Run On.
$!
$ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine."
$!
$!
$ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine."
$!
-$! Define The OBJ Directory Name.
-$!
-$ OBJ_DIR := SYS$DISK:[--.'ARCH'.OBJ.CRYPTO.DES]
-$!
$! Check To See If The Architecture Specific OBJ Directory Exists.
$!
$ IF (F$PARSE(OBJ_DIR).EQS."")
$! Check To See If The Architecture Specific OBJ Directory Exists.
$!
$ IF (F$PARSE(OBJ_DIR).EQS."")
@@
-89,10
+94,6
@@
$! End The Architecture Specific OBJ Directory Check.
$!
$ ENDIF
$!
$!
$ ENDIF
$!
-$! Define The EXE Directory Name.
-$!
-$ EXE_DIR :== SYS$DISK:[--.'ARCH'.EXE.CRYPTO.DES]
-$!
$! Check To See If The Architecture Specific Directory Exists.
$!
$ IF (F$PARSE(EXE_DIR).EQS."")
$! Check To See If The Architecture Specific Directory Exists.
$!
$ IF (F$PARSE(EXE_DIR).EQS."")
@@
-430,11
+431,13
@@
$!
$! Compile The DES Program.
$!
$ CC/OBJECT='OBJ_DIR'DES.OBJ SYS$DISK:[]DES.C
$! Compile The DES Program.
$!
$ CC/OBJECT='OBJ_DIR'DES.OBJ SYS$DISK:[]DES.C
+$ CC/OBJECT='OBJ_DIR'DES.OBJ SYS$DISK:[]CBC3_ENC.C
$!
$! Link The DES Program.
$!
$ LINK/'DEBUGGER'/'TRACEBACK'/CONTIGUOUS/EXE='EXE_DIR'DES.EXE -
$!
$! Link The DES Program.
$!
$ LINK/'DEBUGGER'/'TRACEBACK'/CONTIGUOUS/EXE='EXE_DIR'DES.EXE -
- 'OBJ_DIR'DES.OBJ,'LIB_NAME'/LIBRARY,'OPT_FILE'/OPTION
+ 'OBJ_DIR'DES.OBJ,'OBJ_DIR'CBC3_ENC.OBJ,-
+ 'LIB_NAME'/LIBRARY,'OPT_FILE'/OPTION
$!
$! All Done, Time To Return.
$!
$!
$! All Done, Time To Return.
$!
@@
-562,7
+565,7
@@
$!
$ IF (F$SEARCH(OPT_FILE).EQS."")
$ THEN
$!
$ IF (F$SEARCH(OPT_FILE).EQS."")
$ THEN
$!
-$! Figure Out If We Need An
AXP
Or A VAX Linker Option File.
+$! Figure Out If We Need An
non-VAX
Or A VAX Linker Option File.
$!
$ IF (F$GETSYI("CPU").LT.128)
$ THEN
$!
$ IF (F$GETSYI("CPU").LT.128)
$ THEN
@@
-582,19
+585,19
@@
$! Else...
$!
$ ELSE
$!
$!
$ ELSE
$!
-$! Create The
AXP
Linker Option File.
+$! Create The
non-VAX
Linker Option File.
$!
$ CREATE 'OPT_FILE'
$DECK
!
$!
$ CREATE 'OPT_FILE'
$DECK
!
-! Default System Options File For
AXP
To Link Agianst
+! Default System Options File For
non-VAX
To Link Agianst
! The Sharable C Runtime Library.
!
SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE
SYS$SHARE:CMA$OPEN_RTL/SHARE
$EOD
$!
! The Sharable C Runtime Library.
!
SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE
SYS$SHARE:CMA$OPEN_RTL/SHARE
$EOD
$!
-$! End The
VAX/AXP
DEC C Option File Check.
+$! End The DEC C Option File Check.
$!
$ ENDIF
$!
$!
$ ENDIF
$!
@@
-656,13
+659,13
@@
$! Else...
$!
$ ELSE
$!
$!
$ ELSE
$!
-$! Else, Check To See If P1 Has A Valid Argu
e
ment.
+$! Else, Check To See If P1 Has A Valid Argument.
$!
$ IF (P1.EQS."LIBRARY").OR.(P1.EQS."DESTEST").OR.(P1.EQS."SPEED") -
.OR.(P1.EQS."RPW").OR.(P1.EQS."DES").OR.(P1.EQS."DES_OPTS")
$ THEN
$!
$!
$ IF (P1.EQS."LIBRARY").OR.(P1.EQS."DESTEST").OR.(P1.EQS."SPEED") -
.OR.(P1.EQS."RPW").OR.(P1.EQS."DES").OR.(P1.EQS."DES_OPTS")
$ THEN
$!
-$! A Valid Argu
e
ment.
+$! A Valid Argument.
$!
$ BUILDALL = P1
$!
$!
$ BUILDALL = P1
$!
@@
-675,7
+678,7
@@
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
$ WRITE SYS$OUTPUT ""
-$ WRITE SYS$OUTPUT " ALL : Just Build Everything.
+$ WRITE SYS$OUTPUT " ALL : Just Build Everything.
"
$ WRITE SYS$OUTPUT " LIBRARY : To Compile Just The [.xxx.EXE.CRYPTO.DES]LIBDES.OLB Library."
$ WRITE SYS$OUTPUT " DESTEST : To Compile Just The [.xxx.EXE.CRYPTO.DES]DESTEST.EXE Program."
$ WRITE SYS$OUTPUT " SPEED : To Compile Just The [.xxx.EXE.CRYPTO.DES]SPEED.EXE Program."
$ WRITE SYS$OUTPUT " LIBRARY : To Compile Just The [.xxx.EXE.CRYPTO.DES]LIBDES.OLB Library."
$ WRITE SYS$OUTPUT " DESTEST : To Compile Just The [.xxx.EXE.CRYPTO.DES]DESTEST.EXE Program."
$ WRITE SYS$OUTPUT " SPEED : To Compile Just The [.xxx.EXE.CRYPTO.DES]SPEED.EXE Program."
@@
-685,15
+688,16
@@
$ WRITE SYS$OUTPUT " DES_OPTS : To Compile Just The [.xxx.EXE.CRYTPO.DES
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT " Where 'xxx' Stands For: "
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT " Where 'xxx' Stands For: "
$ WRITE SYS$OUTPUT ""
-$ WRITE SYS$OUTPUT " AXP : Alpha Architecture."
-$ WRITE SYS$OUTPUT " VAX : VAX Architecture."
+$ WRITE SYS$OUTPUT " ALPHA : Alpha Architecture."
+$ WRITE SYS$OUTPUT " IA64 : IA64 Architecture."
+$ WRITE SYS$OUTPUT " VAX : VAX Architecture."
$ WRITE SYS$OUTPUT ""
$!
$! Time To EXIT.
$!
$ EXIT
$!
$ WRITE SYS$OUTPUT ""
$!
$! Time To EXIT.
$!
$ EXIT
$!
-$! End The Valid Argu
e
ment Check.
+$! End The Valid Argument Check.
$!
$ ENDIF
$!
$!
$ ENDIF
$!
@@
-750,7
+754,7
@@
$! Time To EXIT.
$!
$ EXIT
$!
$!
$ EXIT
$!
-$! End The Valid Argu
e
ment Check.
+$! End The Valid Argument Check.
$!
$ ENDIF
$!
$!
$ ENDIF
$!
@@
-815,7
+819,7
@@
$ ELSE
$!
$! Check To See If We Have VAXC Or DECC.
$!
$!
$! Check To See If We Have VAXC Or DECC.
$!
-$ IF (ARCH.
EQS."AXP
").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
+$ IF (ARCH.
NES."VAX
").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
$ THEN
$!
$! Looks Like DECC, Set To Use DECC.
$ THEN
$!
$! Looks Like DECC, Set To Use DECC.
@@
-844,8
+848,8
@@
$ ENDIF
$!
$! Set Up Initial CC Definitions, Possibly With User Ones
$!
$!
$! Set Up Initial CC Definitions, Possibly With User Ones
$!
-$ CCDEFS = "
VMS=1
"
-$ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS =
CCDEFS + "," +
USER_CCDEFS
+$ CCDEFS = ""
+$ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = USER_CCDEFS
$ CCEXTRAFLAGS = ""
$ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
$ CCDISABLEWARNINGS = ""
$ CCEXTRAFLAGS = ""
$ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
$ CCDISABLEWARNINGS = ""
@@
-880,7
+884,7
@@
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + -
$!
$! Define The Linker Options File Name.
$!
$!
$! Define The Linker Options File Name.
$!
-$ OPT_FILE = "
SYS$DISK:[]
VAX_DECC_OPTIONS.OPT"
+$ OPT_FILE = "
''EXE_DIR'
VAX_DECC_OPTIONS.OPT"
$!
$! End DECC Check.
$!
$!
$! End DECC Check.
$!
@@
-902,9
+906,9
@@
$!
$! Compile Using VAXC.
$!
$ CC = "CC"
$! Compile Using VAXC.
$!
$ CC = "CC"
-$ IF ARCH.
EQS."AXP
"
+$ IF ARCH.
NES."VAX
"
$ THEN
$ THEN
-$ WRITE SYS$OUTPUT "There is no VAX C on
Alpha
!"
+$ WRITE SYS$OUTPUT "There is no VAX C on
''ARCH'
!"
$ EXIT
$ ENDIF
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
$ EXIT
$ ENDIF
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
@@
-917,7
+921,7
@@
$ DEFINE/NOLOG SYS SYS$COMMON:[SYSLIB]
$!
$! Define The Linker Options File Name.
$!
$!
$! Define The Linker Options File Name.
$!
-$ OPT_FILE = "
SYS$DISK:[]
VAX_VAXC_OPTIONS.OPT"
+$ OPT_FILE = "
''EXE_DIR'
VAX_VAXC_OPTIONS.OPT"
$!
$! End VAXC Check
$!
$!
$! End VAXC Check
$!
@@
-942,7
+946,7
@@
$ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + CCEXTRAFLAGS
$!
$! Define The Linker Options File Name.
$!
$!
$! Define The Linker Options File Name.
$!
-$ OPT_FILE = "
SYS$DISK:[]
VAX_GNUC_OPTIONS.OPT"
+$ OPT_FILE = "
''EXE_DIR'
VAX_GNUC_OPTIONS.OPT"
$!
$! End The GNU C Check.
$!
$!
$! End The GNU C Check.
$!
@@
-974,7
+978,7
@@
$! Show user the result
$!
$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC
$!
$!
$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC
$!
-$! Else The User Entered An Invalid Argu
e
ment.
+$! Else The User Entered An Invalid Argument.
$!
$ ELSE
$!
$!
$ ELSE
$!