
1.4. SOFTWARE
19
Listing 1.3: Link script for simpleprog (Listing 1.1)
MEMORY
{
vec tors : ORIGIN = 0 x00000000 , LENGTH = 0 x000020 00
sdram : ORIGIN = 0 x00002000 , LENGTH = 0 x03ff e000
}
SECTIONS
{
. vectors :
{
*(. vectors )
} > vectors
. text :
{
*(. text )
} > sdram
. rodata ALIGN (4) :
{
*(. rodata )
} > sdram
. rodata . str1 .1 ALIGN (4) :
{
*(. rodata . str1 .1)
} > sdram
. data ALIGN (4):
{
*(. data )
} > sdram
. bss ALIGN (4):
{
*(. bss )
} > sdram
}
1.4.3 The simulator or32-uclinux-sim
The simulator is started with the command
or32-uclinux-sim -f sim.cfg prog ,
where sim.cfg describes the hardware and prog is the program to run on the simu-
lated hardware. Some help is printed out by the command
or32-uclinux-sim -h .
Kommentare zu diesen Handbüchern