Browse Source

hop hop hop le système de cache

master
tth 3 months ago
parent
commit
0e79b3e8fa
5 changed files with 60 additions and 2 deletions
  1. +2
    -0
      .gitignore
  2. +17
    -2
      experiment/Makefile
  3. +18
    -0
      experiment/cachengn.c
  4. +5
    -0
      experiment/cachengn.h
  5. +18
    -0
      experiment/tcache.c

+ 2
- 0
.gitignore View File

@ -86,4 +86,6 @@ experiment/*.pnm
experiment/*.o
experiment/muxplanes
experiment/movepixels
experiment/tcache

+ 17
- 2
experiment/Makefile View File

@ -5,10 +5,12 @@
COPT = -Wall -fpic -g -DDEBUG_LEVEL=1 -lm
DEPS = ../floatimg.h ../libfloatimg.a Makefile
LIBS = -ltiff -lpnglite -lcfitsio
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio
all: assemblage extracteur muxplanes movepixels
# ---------------------------------------------------------
assemblage: assemblage.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
@ -16,7 +18,20 @@ extracteur: extracteur.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
muxplanes: muxplanes.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
gcc $(COPT) $< ${LIBS} -o $@
movepixels: movepixels.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
# ---------------------------------------------------------
# CACHE ENGINE
cachengn.o: cachengn.c cachengn.h Makefile
gcc $(COPT) -c $<
tcache.o: tcache.c cachengn.h Makefile
gcc $(COPT) -c $<
tcache: tcache.o cachengn.o Makefile
gcc $(COPT) tcache.o cachengn.o $(LIBS) -o $@

+ 18
- 0
experiment/cachengn.c View File

@ -0,0 +1,18 @@
/*
* the chache engine - code
*/
#include <stdio.h>
#include "cachengn.h"
/* ------------------------------------------------------------ */
void cachengn_print_version(int k)
{
printf("this is the version ZERO !!!\n");
}
/* ------------------------------------------------------------ */

+ 5
- 0
experiment/cachengn.h View File

@ -0,0 +1,5 @@
/*
* the chache engine - header
*/
void cachengn_print_version(int k);

+ 18
- 0
experiment/tcache.c View File

@ -0,0 +1,18 @@
/*
* tests du systeme de cache
*/
#include <stdio.h>
#include "cachengn.h"
/* ------------------------------------------------------------ */
int main(int argc, char *argv[])
{
fprintf(stderr, "Test of the cache engin - %s %s\n", __DATE__, __TIME__);
return 0;
}
/* ------------------------------------------------------------ */

Loading…
Cancel
Save