or: clang -O3 imgLoadBench.c -o imgLoadBench_stb_clang_O3 or: gcc -O2 -DUSE_LIBJPEG imgLoadBench.c -o imgLoadBench_libjpeg_gcc_O2 -ljpeg or: gcc -O0 -DUSE_LIBPNG imgLoadBench.c -o imgLoadBench_libpng_gcc_O0 -lpng ex: gcc -O4 -DUSE_LODEPNG imgLoadBench.c lodepng.c -o imgLoadBench_lodepng_gcc_O4 for lodepng also compile lodepng.c into the binary you'll have to provide the corresponding headers and (for libjpeg and libpng) libs to link against XOR USE_LIBJPEG to decode with libjpeg or libjpeg-turbo XOR nothing to use stb_image. you can define USE_LIBPNG to decode with libpng XOR USE_LODEPNG to decode with lodepng Learn more about bidirectional Unicode characters To review, open the file in an editor that reveals hidden Unicode characters. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |