Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
10  software/common.mak
... ...
@@ -1,18 +1,17 @@
1 1
 # Mico32 toolchain
2 2
 #
3  
-CROSS_COMPILER=lm32-rtems4.11-
4  
-CLANG=clang -ccc-host-triple mico32-generic-generic -ccc-gcc-name $(CROSS_COMPILER)gcc
  3
+CROSS_COMPILER=lm32-elf-
  4
+# TODO: mico32 should be renamed lm32 in LLVM
  5
+CLANG=clang -ccc-host-triple mico32-elf
5 6
 
6 7
 CC_normal := $(CLANG)
7 8
 AR_normal := $(CROSS_COMPILER)ar
8  
-AS_normal := $(CROSS_COMPILER)as
9 9
 LD_normal := $(CROSS_COMPILER)ld
10 10
 OBJCOPY_normal := $(CROSS_COMPILER)objcopy
11 11
 RANLIB_normal := $(CROSS_COMPILER)ranlib
12 12
 
13 13
 CC_quiet = @echo " CC " $@ && $(CLANG)
14 14
 AR_quiet = @echo " AR " $@ && $(CROSS_COMPILER)ar
15  
-AS_quiet = @echo " AS " $@ && $(CROSS_COMPILER)as
16 15
 LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)ld
17 16
 OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy
18 17
 RANLIB_quiet = @echo " RANLIB  " $@ && $(CROSS_COMPILER)ranlib
@@ -20,14 +19,12 @@ RANLIB_quiet = @echo " RANLIB  " $@ && $(CROSS_COMPILER)ranlib
20 19
 ifeq ($(V),1)
21 20
     CC = $(CC_normal)
22 21
     AR = $(AR_normal)
23  
-    AS = $(AS_normal)
24 22
     LD = $(LD_normal)
25 23
     OBJCOPY = $(OBJCOPY_normal)
26 24
     RANLIB = $(RANLIB_normal)
27 25
 else
28 26
     CC = $(CC_quiet)
29 27
     AR = $(AR_quiet)
30  
-    AS = $(AS_quiet)
31 28
     LD = $(LD_quiet)
32 29
     OBJCOPY = $(OBJCOPY_quiet)
33 30
     RANLIB = $(RANLIB_quiet)
@@ -36,7 +33,6 @@ endif
36 33
 # Toolchain options
37 34
 #
38 35
 INCLUDES = -I$(M2DIR)/software/include/base -I$(M2DIR)/software/include -I$(M2DIR)/common
39  
-ASFLAGS = -nostdinc $(INCLUDES)
40 36
 CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \
41 37
 	 -Wmissing-prototypes -fsigned-char -nostdinc $(INCLUDES)
42 38
 LDFLAGS = -nostdlib -nodefaultlibs
16  software/compiler-rt/lm32.mk
... ...
@@ -0,0 +1,16 @@
  1
+Description := LatticeMico32
  2
+
  3
+Configs := lm32
  4
+Arch := lm32
  5
+
  6
+CC := clang
  7
+
  8
+# TODO: mico32 should be renamed lm32 in LLVM
  9
+CFLAGS := -Wall -Werror -O3 -D_YUGA_LITTLE_ENDIAN=0 -D_YUGA_BIG_ENDIAN=1 -ccc-host-triple mico32-elf
  10
+
  11
+FUNCTIONS := divsi3 modsi3 comparedf2 negsf2 negdf2 addsf3 subsf3 mulsf3 divsf3 \
  12
+  floatsisf floatunsisf fixsfsi fixunssfsi adddf3 subdf3 muldf3 divdf3 floatsidf floatunsidf fixdfsi fixunsdfsi
  13
+
  14
+# Those are already implemented in HW and should not be needed.
  15
+# But the other functions directly depend on them.
  16
+FUNCTIONS += udivsi3 lshrdi3 muldi3 ashldi3

No commit comments for this range

Something went wrong with that request. Please try again.