Disclaimer: Whatever I suggested in my blog is what I would do, it does not necessarily mean the only way to do it.
Compatibility between Sun and GNU Assembler
The latest patch for Sun Studio 12 Assembler has some modifications that may be of interest to some developers with existing assembly source previously written for the GNU Assembler; Sun Studio 12 Assembler is now more syntatically compatible with GNU Assembler!
There are 2 new assembler options:
Major area of changes:
For example: mov $10, %ax
can now be used for
movw $10, %ax
Note if we have: mov $10, mem
Sun Assembler will default to become
movl $10, mem
But give an error if -C is used to be compatible
with GNU Assembler
For example: "fbe -m64 -a32 file.s" can assemble
lea 123(%eax,%r10d),%eax
Posted at 04:37PM Dec 10, 2007 by alblog in Sun | Comments[0]
Today's Page Hits: 0