News for hackers. Stuff that matters.
Re:Rewrite Linux Kernel in Rust? by AstralStorm on Sunday June 04, 2017 @01:13AM (#14479996)
AT&T syntax puts the operator first, not the value. AT&T is Verb Subject Object. Intel is alien Verb Object Subject.

Many kinds of S expressions result in similar code. That would mean Lisp derivatives.

Re:Rewrite Linux Kernel in Rust? by tom_mellior on Sunday June 04, 2017 @05:55AM (#14480600)
> AT&T syntax puts the operator first, not the value.

If "operator" has any meaning in assembly language, it would have to refer to the opcode. Both variants have the opcode (mov/movl) first.

> AT&T is Verb Subject Object. Intel is alien Verb Object Subject.

Both "move 5 into EAX" and "move into EAX the value 5" are imperatives. Neither of them has a subject, or more precisely, the subject is omitted (https://en.wikipedia.org/wiki/Imperative_mood). In both of these, 5 is an object. "into EAX" is an adverbial phrase or something.

It's true that one sounds more alien than the other when forcibly translated to English. Then again, assembly language is not English, so that's neither here nor there.

Re:Rewrite Linux Kernel in Rust? by hyperpape on Sunday June 04, 2017 @08:46AM (#14481248)
Sloppy of me, but I meant value before the variable/register.