Changeset 445 for trunk/user/pgcd
- Timestamp:
- May 29, 2018, 9:27:23 AM (7 years ago)
- Location:
- trunk/user/pgcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/pgcd/Makefile
r444 r445 1 1 ############################################################################ 2 # Makefile for the ALMOS-MKH "pgcd" application2 # Makefile for the "pgcd" application # 3 3 ############################################################################ 4 4 … … 11 11 OBJS = build/pgcd.o 12 12 13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE) 13 INCLUDES = -I. \ 14 -I$(LIBC_INCLUDE) \ 15 -I$(LIBPTHREAD_INCLUDE) \ 16 -I$(LIBALMOSMKH_INCLUDE) \ 17 -I$(SHARED_INCLUDE) 14 18 15 19 compile: dirs build/pgcd.elf 16 20 17 21 build/pgcd.elf : $(OBJS) pgcd.ld 18 $(LD) -o $@ -T pgcd.ld $(OBJS) - nostdlib -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lalmos-mkh -lc -lalmos-mkh -lpthread -lc22 $(LD) -o $@ -T pgcd.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc 19 23 $(DU) -D $@ > $@.txt 20 24 -
trunk/user/pgcd/pgcd.c
r444 r445 8 8 9 9 10 #include <stdlib.h>11 10 #include <stdio.h> 12 #include <almos -mkh.h>11 #include <almosmkh.h> 13 12 14 13 /////////// … … 20 19 21 20 get_cycle( &cycle ); 22 printf( "\n [PGCD] starts / cycle %d\n", (unsigned int)cycle );21 printf( "\n\n[PGCD] starts / cycle %d\n", (unsigned int)cycle ); 23 22 24 23 while (1)
Note: See TracChangeset
for help on using the changeset viewer.