Re: Please advise on dealing with compiler issue

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

 



From: Khalid Aziz <khalid.aziz@xxxxxxxxxx>
Date: Wed, 20 Apr 2016 09:08:02 -0600

> 3. .byte 0x83,0x43,0x80,0x00 - This is byte coded equivalent of "rd
> %asr14, %g1". This works independent of binutils version but is ugly
> and requires pre-assigning a register to read MCDPER into, which does
> not help compiler with optimization.

The register read is so expensive relative to executing other
instructions, that I don't think compiler optimizations are a valid
consideration at all.

This is the only valid option given the constraints, and you should
use ".word xxxxx" just like we do for other similar hard coded
instruction sequences.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux