How to set gcc to use intel syntax permanently?
问题 I have the following code which compiles fine with the gcc command gcc ./example.c . The program itself calls the function "add_two" which simply adds two integers. To use the intel syntax within the extended assembly instructions I need to switch at first to intel and than back to AT&T. According to the gcc documentation it is possible to switch to intel syntax entirely by using gcc -masm=intel ./exmaple . Whenever I try to compile it with the switch -masm=intel it won't compile and I don't