bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mips and GNU Assembler >2.11.2


From: Сергей Пачков
Subject: mips and GNU Assembler >2.11.2
Date: Wed, 12 Mar 2003 12:11:09 +0300

I tried to compile my assembler file with GNU Binutils versions 2.11.2, 
2.12,2.13.2.1 and found out the one mistakes in produced code.
The file "q2.S" is code which I tried to compile with options "-Wahl"
In file "q2.13.2.1.list" is output of GNU As 2.13.2.1 that same as output of 
GNU As 2.12.
In file "q2.11.2.list is output of GNU As 2.11.2. It is ideal for me and works 
fine on real machine.
If I compile my short example with as.2.11.2 then I have follow output:
start snippet
   9                    init_data:
  10                    
  11                    
  12 0000 0000013C          sw   $2,    test_data+0x0C
  12      180022AC 
  13                    
  14 0008 0800E003          j    $31
  15 000c 00000000          nop
end snippet
The line 12 contain the valid CPU instruction and real machine doesn't fault.
If I compile my example with GNU as.2.13.2.1 or 2.12 then I have output lke 
this:
9               init_data:
  10                    
  11                    
  12 0000 F8FF013C          sw   $2,    test_data+0x0C
  12      140022AC
  13                    
  14 0008 0800E003          j    $31
  15 000c 00000000          nop

In line 12 we have the invalid instruction and CPU generate address fault!

Attachment: q2.s
Description: Binary data

Attachment: q.2.13.2.1.list
Description: Binary data

Attachment: q.2.11.2.list
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]