Universality of nop
Hans-Peter Nilsson
hp@bitrange.com
Wed Aug 20 22:13:00 GMT 2014
On Wed, 20 Aug 2014, Joel Sherrill wrote:
> Hi
>
> In getting RTEMS and tests to build for the or1k, Hesham ran into
> test which had inline assembly for "nop". or1k does not have nop
> defined. Interestingly, this has not been a problem on the 17 other
> architectures we build RTEMS for.
>
> Should all targets have a nop instruction?
No, binutils-hackers don't have (should not claim) that say.
If you want to provide a mostly-universal pseudo-op ".nop",
that'd be fine (mostly, as the target environment should have
first say about its semantics - it may have claimed that
pseudo-op), but introducing an actual universal instruction with
certain semantics is unacceptable.
> Or did we just get lucky
> 17 times? :)
Yes.
brgds, H-P
More information about the Binutils
mailing list