RE: codesourcery compile helping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: codesourcery compile helping



Dear Sir:

I think the " .word " in the GNU just like the " DCD " in the realview.

But I do not know how to use it. 

stack_base      
     .word     0x80000

If I use this instructor
     ldr  r0, stack_base
the arm-none-eabi-as imply: bad instructor.
Could you help me how to write the instructor!

Thank you
Stephen

-----Original Message-----
From: Nathan Sidwell [mailto:nathan@xxxxxxxxxxxxxxxx] 
Sent: Monday, March 06, 2006 4:43 PM
To: Yongming (Stephen Lg) Hu
Subject: Re: codesourcery compile helping

Yongming (Stephen Lg) Hu wrote:
> Dear Sir;

>    I am a new player, I want to use the coudsourcery to compile and 
> debug the arm assemble language.
> 
> I give you the program, could you help me solving the question. Thank
you.

Thank you for using our ARM Toolchains.  We not provide free support for
these 
packages, but comments or defect reports are appreciated, and may be
sent to 
arm-gnu@xxxxxxxxxxxxxxxxx  We are able to offer paid support, which will
include 
user assistance.  Please contact info@xxxxxxxxxxxxxxxx if you are
interested in 
this option.

> stack_base      DCD     0x80000     @ stack defin 

> But it imply bad instruction ' stack_base DCD 0x80000'

> Could you tell me how to solve the question.

'stack_base' is not an instruction.  I believe you meant to write
	.equ stack_base,0x8000

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::
CodeSourcery
nathan@xxxxxxxxxxxxxxxx    ::
http://www.planetfall.pwp.blueyonder.co.uk