This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in ARM Branch Syntax


> 
> Hi all,
> 
> I have a ADS macro defined in a file something like this:
> ==================================
> MACRO   Q_ADD  $reg1,$reg2,$reg3
>          ADDS    $reg1,  $reg2,  $reg3
>          BVC     {pc} + 0x0C    =======================>> Problemetic 
> Line
>          MVNGT $reg1,    #0x80000000
>          MOVLT    $reg1, #0x80000000
> MEND
> ===================================
> 
> When I try to port the code onto gcc, it gives a linking error as 
> "undefined reference to pc"
> I tried many alternatives but was not successful.
> 
> Can anyone tell me how this be changed to suit gcc??
> 

Dot (the character '.') is the address of the current instruction in GAS.

R.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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