Hi, all Thank you very much for answering my question about the link error. The situation is like Sachinpandhare said and it is OK now! regards encai ----- Original Message ----- From: "sachinpandhare" <> To: <> Sent: Wednesday, April 17, 2002 1:16 PM Subject: [code-comp] Re: CCS2.0 Link error > hi Encai, > u may be using the address of some variable in ur assembly which is > greater than 0x10000. thats why the compiler can't assign it properly. > => best solution to this is place those variables in the first page > that is before 0x10000 > > otherwise if that variable is in next page and still u want to use it > then u could do one thing. initialize the address of that variable > (or table) in some xar like > AMAR *(#var), XAR4 > or > AMOV #var, XAR4 > (this actually moves the 23bit address in the xar reg) > then u can us that address by just refering to ar like > MOV *ar+,ac0 (here it won't show reloc overflow) > > u may be using > MOV *var,ac0 (where var is having address greater > than 16 bit, right?) > > u should also try by using large memory model > > all the best > > bye for now > sachin > > --- In code-comp@y..., "Encai" <encai@y...> wrote: > > Hi, all > > > > I have encouter a link error when link my asm program(algebraic). > > What can I do to sovle this problem, and generally in what situation > > this error can occur? > > I am a little tired on reading the User's Guide. > > > > >> error: relocation overflow occured at address 0x00000013 in > TEXT section > > '.text' of input file 'C:\aaaaaa\Asm\Debug\bbbbb.obj'. > > The 17-bit relocated address 0x13e23 is too large to > encode in the > > 16-bit signed field. You may need to add a mask to the > assembly > > instruction or use other target specific assembly > features if you > > really only need the lowest 16 bits of this symbol. > Please see the > > section on Relocation in the Assembly User's Guide. > > > > I am using ccs2.0 & 5510. > > > > Thanks! > > encai > > > > > > > > _________________________________________________________ > > > > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/code-comp > > More Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ _________________________________________________________ |