Re:ASM
by CountHackulus on Friday April 12, 2013 @12:09PM
(#5539295)
For nearly any other assembly language, like say System 390 or PowerPC, it's a straightforward 1-1 mapping. Macros and pseudo instructions more fall into the real of text pre-processing than compiling.
[ Parent
| on HN ]
Nit-pick Power is many to one, not one-to-one (there is no "shift" machine code, but there is a rotate-and-mask machine code that shift operators are translated into).
Re:ASM
by CountHackulus on Saturday April 20, 2013 @12:27AM
(#5580202)
I've written part of a compiler for Power and never used the shift machine code, maybe it's just the setup I was using, but I use rlwinm[.] all the time.