Rewrite _hadd in assembler (a huge speedup!) and integrate it with free

for even faster code. The old _hadd function is now also written in
assembler but does only setup variables and calls the internal function
that is part of free.


git-svn-id: svn://svn.cc65.org/cc65/trunk@182 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-07-21 21:36:06 +00:00
parent 950a88d55e
commit 8db1fa3aa0
5 changed files with 455 additions and 163 deletions

View File

@@ -10,7 +10,7 @@
@$(AS) -g -o $@ $(AFLAGS) $(*).s
%.o: %.s
@echo $<
@echo $<
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS = fclose.o fgets.o fprintf.o strdup.o calloc.o _fopen.o\
@@ -18,10 +18,11 @@ C_OBJS = fclose.o fgets.o fprintf.o strdup.o calloc.o _fopen.o\
printf.o _hextab.o vfprintf.o fdopen.o strtok.o\
_afailed.o fopen.o fgetc.o fputc.o puts.o gets.o perror.o getchar.o\
_printf.o vprintf.o vsprintf.o sprintf.o abort.o qsort.o putchar.o\
errormsg.o _hadd.o cprintf.o vcprintf.o freopen.o locale.o
errormsg.o cprintf.o vcprintf.o freopen.o locale.o
S_OBJS = _fdesc.o \
_file.o \
_hadd.o \
_heap.o \
_oserror.o \
_stksize.o \