MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / main

Function main

libCacheSim/bin/dep/misc/flash.cpp:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110int main(int argc, char *argv[]) {
111 struct arguments args;
112 parse_cmd(argc, argv, &args);
113 if (args.n_cache_size != 1) {
114 WARN("only support one cache size\n");
115 exit(0);
116 }
117 if (args.n_eviction_algo != 1) {
118 WARN("only support one eviction algorithm\n");
119 exit(0);
120 }
121
122 calWriteAmp(args.reader, args.caches[0]);
123
124 free_arg(&args);
125
126 return 0;
127}

Callers

nothing calls this directly

Calls 3

calWriteAmpFunction · 0.70
parse_cmdFunction · 0.50
free_argFunction · 0.50

Tested by

no test coverage detected