URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [zlib/] [as400/] [readme.txt] - Rev 745
Compare with Previous | Blame | View Log
ZLIB version 1.2.3 for AS400 installation instructionsI) From an AS400 *SAVF file:1) Unpacking archive to an AS400 save fileOn the AS400:_ Create the ZLIB AS400 library:CRTLIB LIB(ZLIB) TYPE(PROD) TEXT('ZLIB compression API library')_ Create a work save file, for example:CRTSAVF FILE(ZLIB/ZLIBSAVF)On a PC connected to the target AS400:_ Unpack the save file image to a PC file "ZLIBSAVF"_ Upload this file into the save file on the AS400, for exampleusing ftp in BINARY mode.2) Populating the ZLIB AS400 source libraryOn the AS400:_ Extract the saved objects into the ZLIB AS400 library using:RSTOBJ OBJ(*ALL) SAVLIB(ZLIB) DEV(*SAVF) SAVF(ZLIB/ZLIBSAVF) RSTLIB(ZLIB)3) Customize installation:_ Edit CL member ZLIB/TOOLS(COMPILE) and change parameters if needed,according to the comments._ Compile this member with:CRTCLPGM PGM(ZLIB/COMPILE) SRCFILE(ZLIB/TOOLS) SRCMBR(COMPILE)4) Compile and generate the service program:_ This can now be done by executing:CALL PGM(ZLIB/COMPILE)II) From the original source distribution:1) On the AS400, create the source library:CRTLIB LIB(ZLIB) TYPE(PROD) TEXT('ZLIB compression API library')2) Create the source files:CRTSRCPF FILE(ZLIB/SOURCES) RCDLEN(112) TEXT('ZLIB library modules')CRTSRCPF FILE(ZLIB/H) RCDLEN(112) TEXT('ZLIB library includes')CRTSRCPF FILE(ZLIB/TOOLS) RCDLEN(112) TEXT('ZLIB library control utilities')3) From the machine hosting the distribution files, upload them (withFTP in text mode, for example) according to the following table:Original AS400 AS400 AS400 AS400file file member type descriptionSOURCES Original ZLIB C subprogram sourcesadler32.c ADLER32 C ZLIB - Compute the Adler-32 checksum of a dta strmcompress.c COMPRESS C ZLIB - Compress a memory buffercrc32.c CRC32 C ZLIB - Compute the CRC-32 of a data streamdeflate.c DEFLATE C ZLIB - Compress data using the deflation algorithmgzio.c GZIO C ZLIB - IO on .gz filesinfback.c INFBACK C ZLIB - Inflate using a callback interfaceinffast.c INFFAST C ZLIB - Fast proc. literals & length/distance pairsinflate.c INFLATE C ZLIB - Interface to inflate modulesinftrees.c INFTREES C ZLIB - Generate Huffman trees for efficient decodetrees.c TREES C ZLIB - Output deflated data using Huffman codinguncompr.c UNCOMPR C ZLIB - Decompress a memory bufferzutil.c ZUTIL C ZLIB - Target dependent utility functionsH Original ZLIB C and ILE/RPG include filescrc32.h CRC32 C ZLIB - CRC32 tablesdeflate.h DEFLATE C ZLIB - Internal compression stateinffast.h INFFAST C ZLIB - Header to use inffast.cinffixed.h INFFIXED C ZLIB - Table for decoding fixed codesinflate.h INFLATE C ZLIB - Internal inflate state definitionsinftrees.h INFTREES C ZLIB - Header to use inftrees.ctrees.h TREES C ZLIB - Created automatically with -DGEN_TREES_Hzconf.h ZCONF C ZLIB - Compression library configurationzlib.h ZLIB C ZLIB - Compression library C user interfaceas400/zlib.inc ZLIB.INC RPGLE ZLIB - Compression library ILE RPG user interfacezutil.h ZUTIL C ZLIB - Internal interface and configurationTOOLS Building source software & AS/400 READMEas400/bndsrc BNDSRC Entry point exportation listas400/compile.clp COMPILE CLP Compile sources & generate service programas400/readme.txt README TXT Installation instructions4) Continue as in I)3).Notes: For AS400 ILE RPG programmers, a /copy member defining the ZLIBAPI prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC).Please read comments in this member for more information.Remember that most foreign textual data are ASCII coded: thisimplementation does not handle conversion from/to ASCII, sotext data code conversions must be done explicitely.Always open zipped files in binary mode.
