#!/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.
|
#
|
#
|
# Revision 1.5 2007/10/22 19:14:38 sybreon
|
# Revision 1.5 2007/10/22 19:14:38 sybreon
|
# Recommended to compile code with -O2/3/s
|
# Recommended to compile code with -O2/3/s
|
#
|
#
|
# Revision 1.4 2007/04/30 15:57:31 sybreon
|
# Revision 1.4 2007/04/30 15:57:31 sybreon
|
# Modified compilation sequence.
|
# Modified compilation sequence.
|
#
|
#
|
# Revision 1.3 2007/04/25 22:15:06 sybreon
|
# Revision 1.3 2007/04/25 22:15:06 sybreon
|
# Added support for 8-bit and 16-bit data types.
|
# Added support for 8-bit and 16-bit data types.
|
#
|
#
|
# Revision 1.2 2007/04/04 06:14:39 sybreon
|
# Revision 1.2 2007/04/04 06:14:39 sybreon
|
# Minor changes
|
# Minor changes
|
#
|
#
|
# 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 && \
|
echo "ROM generated"
|
echo "ROM generated"
|
|
|