OpenCores
URL https://opencores.org/ocsvn/aemb/aemb/trunk

Subversion Repositories aemb

[/] [aemb/] [trunk/] [sw/] [gccrom] - Blame information for rev 133

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sybreon
#!/bin/sh
2 133 sybreon
# $Id: gccrom,v 1.15 2008-04-26 10:03:00 sybreon Exp $
3 104 sybreon
 
4 133 sybreon
# Compile using C pre-processor
5
ELFFILE="rom"
6
XILFLAGS="-mxl-soft-div -msoft-float -mxl-barrel-shift -mno-xl-soft-mul"
7
CXXFLAGS="-O0"
8
LNKFLAGS="-Wl,-defsym -Wl,_STACK_SIZE=0x400 -Wl,-defsym -Wl,_HEAP_SIZE=0x400"
9
LIBFLAGS="-lc_m_bs -lm_m_bs"
10
INCFLAGS="-Icc/"
11 104 sybreon
 
12 133 sybreon
mb-gcc $XILFLAGS $CXXFLAGS $LNKFLAGS $LIBFLAGS $INCFLAGS  $@ -o $ELFFILE && \
13
echo "xgcc=$?" && \
14
 
15 104 sybreon
# Create a text listing of the compiled code
16 133 sybreon
mb-objdump -DSCz $ELFFILE > $ELFFILE.dump && \
17
echo "dump=$?" && \
18 104 sybreon
 
19
# Convert the ELF file to an SREC file
20 133 sybreon
mb-objcopy -O srec $ELFFILE $ELFFILE.srec && \
21
echo "copy=$?" && \
22 104 sybreon
 
23
# Generate a Verilog VMEM file from the SREC file
24 133 sybreon
srec_cat $ELFFILE.srec -o ../sim/dump.vmem -vmem 32 && \
25
echo "srec=$?" && \
26 104 sybreon
 
27
# Cleanup code
28 133 sybreon
rm $ELFFILE.srec && rm $ELFFILE
29 104 sybreon
 
30 2 sybreon
# $Log: not supported by cvs2svn $
31 133 sybreon
# Revision 1.14  2008/01/31 19:07:14  sybreon
32
# Made code work with newlib's malloc();
33
#
34 106 sybreon
# Revision 1.13  2008/01/19 16:42:54  sybreon
35
# Uses multiplier + barrel shifter as default.
36
#
37 104 sybreon
# Revision 1.12  2007/12/11 00:44:32  sybreon
38
# Modified for AEMB2
39
#
40 79 sybreon
# Revision 1.11  2007/11/30 17:09:27  sybreon
41
# Minor code cleanup.
42
#
43 74 sybreon
# Revision 1.10  2007/11/20 18:35:34  sybreon
44
# Generate VMEM instead of HEX dumps of programme.
45
#
46 68 sybreon
# Revision 1.9  2007/11/18 19:41:46  sybreon
47
# Minor simulation fixes.
48
#
49 67 sybreon
# Revision 1.8  2007/11/09 20:52:37  sybreon
50
# Added some compilation optimisations.
51
#
52 54 sybreon
# Revision 1.7  2007/11/04 05:16:25  sybreon
53
# Added -msoft-float and -mxl-soft-div compiler flags.
54
#
55 47 sybreon
# Revision 1.6  2007/11/02 03:25:46  sybreon
56
# New EDK 3.2 compatible design with optional barrel-shifter and multiplier.
57
# Fixed various minor data hazard bugs.
58
# Code compatible with -O0/1/2/3/s generated code.
59
#
60 41 sybreon
# Revision 1.5  2007/10/22 19:14:38  sybreon
61
# Recommended to compile code with -O2/3/s
62
#
63 40 sybreon
# Revision 1.4  2007/04/30 15:57:31  sybreon
64
# Modified compilation sequence.
65
#
66 32 sybreon
# Revision 1.3  2007/04/25 22:15:06  sybreon
67
# Added support for 8-bit and 16-bit data types.
68
#
69 22 sybreon
# Revision 1.2  2007/04/04 06:14:39  sybreon
70
# Minor changes
71
#
72 12 sybreon
# Revision 1.1  2007/03/09 17:41:56  sybreon
73
# initial import

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.