Interface 2009/05 LPC2388基板 gcc開発環境構築 (2)

zusさんコメントをいただいた!

早速自分の環境でも試してみる。

cs-makeの場合
===================================
C:¥user¥workspace¥sample>cs-make clean

Cleaning project:
rm -f main.hex
rm -f main.bin
rm -f main.obj
rm -f main.elf
rm -f main.map
rm -f main.obj
rm -f main.a90
rm -f main.sym
rm -f main.lnk
rm -f main.lst
rm -f main.o
rm -f
rm -f
rm -f asmfunc.o
rm -f main.lst asmfunc.lst main.lst
rm -f main.s
rm -f

C:¥user¥workspace¥sample>cs-make all
arm-none-eabi-gcc (Sourcery G++ Lite 2008q3-66) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Assembling (ARM-only): asmfunc.S
arm-none-eabi-gcc -c -mcpu=arm7tdmi-s -I. -x assembler-with-cpp -DROM_RUN -D__W
inARM__ -D__WINARMSUBMDL_LPC2388__ -Wa,-gdwarf-2 asmfunc.S -o asmfunc.o

Compiling C: main.c
arm-none-eabi-gcc -c -mcpu=arm7tdmi-s -I. -gdwarf-2 -DROM_RUN -D__WinARM__ -D_
_WINARMSUBMDL_LPC2388__ -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswi
tch -ffunction-sections -fdata-sections -Wredundant-decls -Wreturn-type -Wshadow
-Wunused -Wcast-qual -Wnested-externs -std=gnu89 -Wstrict-prototypes main.c
-o main.o

Linking: main.elf
arm-none-eabi-gcc -mcpu=arm7tdmi-s -I. -gdwarf-2 -DROM_RUN -D__WinARM__ -D__WI
NARMSUBMDL_LPC2388__ -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswitch
-ffunction-sections -fdata-sections -Wredundant-decls -Wreturn-type -Wshadow -W
unused -Wcast-qual asmfunc.o main.o --output main.elf -nostartfiles -Wl,-Ma
p=main.map,--cref,--gc-sections -lc -lm -lc -lgcc -TLPC2388-ROM.ld
cp main.elf ./jtag

Creating load file for Flash: main.hex
arm-none-eabi-objcopy -O ihex main.elf main.hex

Creating Extended Listing: main.lst
arm-none-eabi-objdump -h -S -C main.elf > main.lst

Creating Symbol Table: main.sym
arm-none-eabi-nm -n main.elf > main.sym
main.elf :
section size addr
.text 1232 0
.bss 12 1073741824
.stack 2560 1073741840
.comment 42 0
.debug_aranges 104 0
.debug_pubnames 75 0
.debug_info 280 0
.debug_abbrev 166 0
.debug_line 462 0
.debug_frame 120 0
.debug_str 106 0
.debug_loc 159 0
.ARM.attributes 46 0
.debug_ranges 88 0
Total 5452



C:¥user¥workspace¥sample>cs-make --version
GNU Make (Sourcery G++ Lite 2008q3-66) 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-mingw32

C:¥user¥workspace¥sample>
========================================================

makeのバージョンもYagartoのmakeと同じ3.81でした。

Yagartoのmakeを使ったときのログは以下の通りです。
========================================================
C:¥user¥workspace¥sample>make clean

Cleaning project:
rm -f main.hex
rm -f main.bin
rm -f main.obj
rm -f main.elf
rm -f main.map
rm -f main.obj
rm -f main.a90
rm -f main.sym
rm -f main.lnk
rm -f main.lst
rm -f main.o
rm -f
rm -f
rm -f asmfunc.o
rm -f main.lst asmfunc.lst main.lst
rm -f main.s
rm -f

C:¥user¥workspace¥sample>make all
arm-none-eabi-gcc (Sourcery G++ Lite 2008q3-66) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Assembling (ARM-only): asmfunc.S
arm-none-eabi-gcc -c -mcpu=arm7tdmi-s -I. -x assembler-with-cpp -DROM_RUN -
inARM__ -D__WINARMSUBMDL_LPC2388__ -Wa,-gdwarf-2 asmfunc.S -o asmfunc.o

Compiling C: main.c
arm-none-eabi-gcc -c -mcpu=arm7tdmi-s -I. -gdwarf-2 -DROM_RUN -D__WinARM__
_WINARMSUBMDL_LPC2388__ -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith -
tch -ffunction-sections -fdata-sections -Wredundant-decls -Wreturn-type -Wsh
-Wunused -Wcast-qual -Wnested-externs -std=gnu89 -Wstrict-prototypes mai
-o main.o

Linking: main.elf
arm-none-eabi-gcc -mcpu=arm7tdmi-s -I. -gdwarf-2 -DROM_RUN -D__WinARM__ -D
NARMSUBMDL_LPC2388__ -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wsw
-ffunction-sections -fdata-sections -Wredundant-decls -Wreturn-type -Wshado
unused -Wcast-qual asmfunc.o main.o --output main.elf -nostartfiles -Wl
p=main.map,--cref,--gc-sections -lc -lm -lc -lgcc -TLPC2388-ROM.ld
cp main.elf ./jtag

Creating load file for Flash: main.hex
arm-none-eabi-objcopy -O ihex main.elf main.hex

Creating Extended Listing: main.lst
arm-none-eabi-objdump -h -S -C main.elf > main.lst

Creating Symbol Table: main.sym
arm-none-eabi-nm -n main.elf > main.sym
main.elf :
section size addr
.text 1232 0
.bss 12 1073741824
.stack 2560 1073741840
.comment 42 0
.debug_aranges 104 0
.debug_pubnames 75 0
.debug_info 280 0
.debug_abbrev 166 0
.debug_line 462 0
.debug_frame 120 0
.debug_str 106 0
.debug_loc 159 0
.ARM.attributes 46 0
.debug_ranges 88 0
Total 5452



C:¥user¥workspace¥sample>make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-mingw32

C:¥user¥workspace¥sample>
====================================================

コメント
トラックバック
  • GNU Make
  • - もぼなもな書房
  • 2009/05/06 9:28 AM
この記事のトラックバックURL