1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-18 16:41:32 +02:00

m1/perf/: build the patch compiler with gcc and with profiling

This commit is contained in:
Werner Almesberger 2011-09-17 03:24:08 -03:00
parent a624fbebc5
commit 001ca49cc6
4 changed files with 37 additions and 0 deletions

35
m1/perf/Makefile Normal file
View File

@ -0,0 +1,35 @@
M1=/home/qi/m1
COMPILER_DIR=$(M1)/flickernoise/src
M1SWINC_DIR=$(M1)/milkymist/software/include
M1SWLIB_DIR=$(M1)/milkymist/software/libfpvm
CFLAGS_COMMON=-Wall -g -pg # -DCOMP_DEBUG
CFLAGS=$(CFLAGS_COMMON) \
-I$(COMPILER_DIR) \
-Ifakes -I$(M1SWINC_DIR)
LDFLAGS=-pg
LDLIBS=-L$(M1SWLIB_DIR) -lfpvm
COMPILER_O = $(COMPILER_DIR)/compiler.o
LIBFPVM_A = $(M1SWLIB_DIR)/libfpvm.a
OBJS = main.o $(COMPILER_O)
all: main
main: $(OBJS) $(LIBFPVM_A)
$(COMPILER_O):
$(MAKE) -C $(COMPILER_DIR) CC=gcc \
CFLAGS="$(CFLAGS_COMMON) -I$(M1SWINC_DIR) \
-I$(shell pwd)/fakes" \
compiler.o
$(LIBFPVM_A):
$(MAKE) -C $(M1SWLIB_DIR) CC=gcc LD=gcc AR=ar RANLIB=ranlib \
CFLAGS='$(CFLAGS_COMMON) $$(INCLUDES)'
clean:
$(MAKE) -C $(M1SWLIB_DIR) clean
$(MAKE) -C $(COMPILER_DIR) clean
rm -f $(OBJS)

1
m1/perf/fakes/bsp Symbolic link
View File

@ -0,0 +1 @@
.

View File

@ -0,0 +1 @@
#include "hw/pfpu.h"

0
m1/perf/fakes/rtems.h Normal file
View File