Changeset 444 for trunk/user/sort


Ignore:
Timestamp:
May 16, 2018, 8:31:35 PM (6 years ago)
Author:
satin@…
Message:

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

Location:
trunk/user/sort
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/sort/Makefile

    r440 r444  
    1111OBJS = build/sort.o
    1212
    13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
     13INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
    1414
    1515compile: dirs build/sort.elf
    1616
    1717build/sort.elf : $(OBJS) sort.ld
    18         $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread
     18        $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lalmos-mkh -lc
    1919        $(DU) -D $@ > $@.txt
    2020
  • trunk/user/sort/sort.c

    r442 r444  
    2424#include <stdio.h>
    2525#include <stdlib.h>
    26 #include <malloc.h>
    2726#include <pthread.h>
     27#include <almos-mkh.h>
    2828
    2929#define ARRAY_LENGTH        0x400    // 1024 values
Note: See TracChangeset for help on using the changeset viewer.