Changes between Version 12 and Version 13 of Component/lm32
- Timestamp:
- Jun 4, 2010, 10:20:59 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/lm32
v12 v13 52 52 == Compiling programs for lm32 with SoCLib == 53 53 54 A complete gcc toolchain (with a uClinux port) is available at [http://www.theobroma-systems.com/uclinux-lm32/ Theobroma Systems website] or at lattice web site. The lm32 binutils and gdb are available in the respective mainstream distributions whereas the gcc port has not been yet merged.54 A complete gcc toolchain (with a uClinux port) is available at [http://www.theobroma-systems.com/uclinux-lm32/ Theobroma Systems website] or at lattice web site. 55 55 56 Before compiling a program for the lm32 with the SoCLib framework you will need to define some system variables (usually on the ~/.soclib/soft_compilers.conf) needed to find the lm32 compiler. Below you have an example: 56 The lm32 binutils, gdb and gcc are available in the respective mainstream distributions (starting from binutils 2.20, gdb 7.0 and gcc 4.5). 57 Newlib libc also support lm32 cpu starting from version 1.17.0, libgloss specific files have to be modified to work with SocLib. 58 59 A non official [http://www.freertos.org/ freeRTOS] port is also available [http://www.freertos.org/index.html?http://interactive.freertos.org/forums/104358-lattice here] 60 61 Before compiling a program for the lm32 with the SoCLib framework you could modify some system variables (usually on the ~/.soclib/soft_compilers.conf) needed to find the good lm32 compiler and to define specific compilation and link options. Below you have an example: 57 62 {{{ 58 sparc_CC_PREFIX = lm32-elf-59 sparc_CFLAGS = -O2 -g -mmultiply-enabled -mdivide-enabled -msign-extend-enabled -mbarrel-shift-enabled60 sparc_LDFLAGS = -nostdlib63 lm32_CC_PREFIX = lm32-elf- 64 lm32_CFLAGS = -O2 -g -mmultiply-enabled -mdivide-enabled -msign-extend-enabled -mbarrel-shift-enabled 65 lm32_LDFLAGS = -nostdlib 61 66 }}}