This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RTEMS Q.


>    I am using a linux-i586 host to produce code for a
>mvme135 which is an embedded mc68020 computer. I use the
>prom monitor to download the code. 

What is a prom monitor? My problem is that when I write an asm
program like :

	move.l #10,d0
	move.l d0,d1

it linkes not into few bytes but (with stripped option on) into 30Kb 
of code regardless of me using coff, ihex, bin or whatever format.

How do I tell GNU asm and linker to produce pure binary that I can
burn into eprom.

>    My first address is 0x4000 (due to monitor). In this address
>RTEMS put a NOP and a JUMP start_address. So you have almost a
>proper reset vector: you must change NOP and JUMP op. code by your
>SSP.

I thought so but I am still not sure if I understand this.
RTEMS starts with something like:

SYM(start):
SYM(M68kVec):
	NOP
	JUMP start_around
	DC.B 4088 /* space for vectors */
	...

If I understand this then RTEMS is not written to start in pure
68000 environment. Instead in my code I should first 
set the vector table to jump to my program and then jump to 
start of RTEMS.
Is this correct?

Is there anywhere well written documentation for GNU Assembler
for motorola (and for other platforms) avaliable (the asm syntax, tutorial
diffrent from GNU AS which describes the usage of assembler application) 
I know motorola from ATARI ST and it had different assembler syntax.

Regards,
Tomaz



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]