4 ms·
This does raise the question: which languages other than AT&T assembly put the value first?
by hyperpape 9y ago
This does raise the question: which languages other than AT&T assembly put the value first?
- AstralStorm 9y agoAT&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.
- tom_mellior 9y ago> 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 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.
- hyperpape 9y agoSloppy of me, but I meant value before the variable/register.