kunpengcompute / kaezip Goto Github PK
View Code? Open in Web Editor NEWA high-performance hardware accelerator for compression/decompression algorithm library of zlib based on kunpeng processor
A high-performance hardware accelerator for compression/decompression algorithm library of zlib based on kunpeng processor
root@hadoop-kae:/opt/KAE_repos/hth/kaezip2/test# make
gcc -g -lz -Wall -L/usr/local/kaezip/lib -I /usr/local/kaezip/include/ -o kaezip_perf kaezip_perf.c
kaezip_perf.c: In function ‘do_compress_perf’:
kaezip_perf.c:122:9: warning: unused variable ‘i’ [-Wunused-variable]
int i = 0;
^
kaezip_perf.c: In function ‘do_decompress_perf’:
kaezip_perf.c:147:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
kaezip_perf.c:147:9: warning: unused variable ‘i’ [-Wunused-variable]
int i, j;
^
/tmp/ccWTksRC.o: In function `get_decompress_input':
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:46: undefined reference to `compressBound'
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:49: undefined reference to `compress2'
/tmp/ccWTksRC.o: In function `do_multi_perf':
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:79: undefined reference to `compressBound'
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:80: undefined reference to `compress2'
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:86: undefined reference to `uncompress'
/tmp/ccWTksRC.o: In function `do_compress_perf':
/opt/KAE_repos/hth/kaezip2/test/kaezip_perf.c:128: undefined reference to `compressBound'
collect2: error: ld returned 1 exit status
makefile:14: recipe for target 'kaezip_perf' failed
make: *** [kaezip_perf] Error 1
root@hadoop-kae:/opt/KAE_repos/hth/kaezip2/test# gcc --version
gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Then I put -lz option after kaezip_perf.c, it works.
According the docs https://gcc.gnu.org/onlinedocs/gcc-7.4.0/gcc/Link-Options.html#Link-Options :
It makes a difference where in the command you write this option; the linker searches and processes libraries and object files in the order they are specified. Thus, ‘foo.o -lz bar.o’ searches library ‘z’ after file foo.o but before bar.o. If bar.o refers to functions in ‘z’, those functions may not be loaded.
The Gzip/Zlib compress data use compression header.windowsBits=47 to represents the "Autodetect gzip/zlib headers/trailers."
But the KAEZip doen't support it. [1]
[1]
Line 103 in ab25510
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.