Changes between Version 12 and Version 13 of Component/lm32


Ignore:
Timestamp:
Jun 4, 2010, 10:20:59 AM (14 years ago)
Author:
graba
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/lm32

    v12 v13  
    5252== Compiling programs for lm32 with SoCLib ==
    5353
    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.
     54A 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.
    5555
    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:
     56The lm32 binutils, gdb and gcc are available in the respective mainstream distributions (starting from binutils 2.20, gdb 7.0 and gcc 4.5).
     57Newlib libc also support lm32 cpu starting from version 1.17.0, libgloss specific files have to be modified to work with SocLib.
     58
     59A 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
     61Before 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:
    5762{{{
    58 sparc_CC_PREFIX = lm32-elf-
    59 sparc_CFLAGS = -O2 -g -mmultiply-enabled -mdivide-enabled -msign-extend-enabled -mbarrel-shift-enabled
    60 sparc_LDFLAGS = -nostdlib
     63lm32_CC_PREFIX = lm32-elf-
     64lm32_CFLAGS = -O2 -g -mmultiply-enabled -mdivide-enabled -msign-extend-enabled -mbarrel-shift-enabled
     65lm32_LDFLAGS = -nostdlib
    6166}}}