Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Redis ziplist.cを個別の実行可能ファイルとしてコンパイルして実行するにはどうすればよいですか?
ziplist.cのメイン関数のみを実行したい。
次のコマンドを使用できます。
gcc -std=c99 -O2 -DZIPLIST_TEST_MAIN ziplist.c zmalloc.c util.c sds.c adlist.c
注:デフォルトのシステムアロケータを使用します。