Line 1... |
Line 1... |
#!/bin/sh
|
#!/bin/sh
|
# $Id: gccrom,v 1.7 2007-11-04 05:16:25 sybreon Exp $
|
# $Id: gccrom,v 1.8 2007-11-09 20:52:37 sybreon Exp $
|
# $Log: not supported by cvs2svn $
|
# $Log: not supported by cvs2svn $
|
|
# Revision 1.7 2007/11/04 05:16:25 sybreon
|
|
# Added -msoft-float and -mxl-soft-div compiler flags.
|
|
#
|
# Revision 1.6 2007/11/02 03:25:46 sybreon
|
# Revision 1.6 2007/11/02 03:25:46 sybreon
|
# New EDK 3.2 compatible design with optional barrel-shifter and multiplier.
|
# New EDK 3.2 compatible design with optional barrel-shifter and multiplier.
|
# Fixed various minor data hazard bugs.
|
# Fixed various minor data hazard bugs.
|
# Code compatible with -O0/1/2/3/s generated code.
|
# Code compatible with -O0/1/2/3/s generated code.
|
#
|
#
|
Line 20... |
Line 23... |
#
|
#
|
# Revision 1.1 2007/03/09 17:41:56 sybreon
|
# Revision 1.1 2007/03/09 17:41:56 sybreon
|
# initial import
|
# initial import
|
#
|
#
|
#mb-gcc -g -mxl-soft-div -mxl-soft-mul -msoft-float -mno-clearbss -msmall-divides -mno-memcpy -mno-xl-gp-opt -o rom.o $@ && \
|
#mb-gcc -g -mxl-soft-div -mxl-soft-mul -msoft-float -mno-clearbss -msmall-divides -mno-memcpy -mno-xl-gp-opt -o rom.o $@ && \
|
mb-gcc -g -mstats -mxl-soft-div -msoft-float -o rom.o $@ && \
|
mb-gcc -g -mstats -mxl-soft-div -msoft-float -mno-memcpy -msmall-divides -o rom.o $@ && \
|
#mb-run -v rom.o 2> rom.run && \
|
#mb-run -v rom.o 2> rom.run && \
|
mb-objcopy -O binary rom.o rom.bin && \
|
mb-objcopy -O binary rom.o rom.bin && \
|
hexdump -v -e'1/4 "%.8X\n"' rom.bin > ../sim/aeMB.rom && \
|
hexdump -v -e'1/4 "%.8X\n"' rom.bin > ../sim/aeMB.rom && \
|
mb-objdump -DSC rom.o > rom.dump && \
|
mb-objdump -DSC rom.o > rom.dump && \
|
rm rom.bin && \
|
rm rom.bin && \
|