What does the GCC error message, “Error: unsupported for `mov'”, mean?
问题 I am just trying to compile some simple example code I typed in from a book, and GCC gives me the above error. Here's my code: $ cat -n test.cpp 1 #define READ_COMMAND 3 2 3 #define MSG_LENGTH 128 4 5 #include <stdlib.h> 6 #include <stdio.h> 7 8 int main(int argc, char *arg[]) 9 { 10 int syslog_command = READ_COMMAND; 11 int bytes_to_read = MSG_LENGTH; 12 int retval; 13 char buffer[MSG_LENGTH]; 14 15 asm volatile( 16 "movl %1, %%ebx\n\t" 17 "movl %2, %%ecx\n\t" 18 "movl %3, %%edx\n\t" 19