This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


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

issue with register name and global variables


Hi,

I am generating a global variable with out an underscore in my compiler.(gcc-3.3)

eg:
    int r1=10;
   int main()
   {
       return 0;
   }

The problem here is , i have a register named "r1"
So my assembler is issuing an error saying "register value used as expression ".
I am using binutils-2.13.1 ( as I am supposed to deal with older versions of source code)
So, how I can make sure my assembler differentiate variable name and register name.


Thanks,
Nagraj





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