title: Is there a way to disable inline assembler in GCC?
body: <p>I'm developing an online judge system for programming contests like LeetCode, Codeforces, etc. As for most programming contests, inline assembler is not allowed in C/C++, so I would like to add the same restriction to my system. </p>
  
  <p>I would like to let GCC and G++ produce an error when compiling a C/C++ program containing inline assembler, so that any code containing inline assembler will result in compilation error. </p>
  
  <p>Is there a way to achieve that? Should I pass some command line arguments to GCC/G++?</p>
  
  <p>Note: disabling inline assembler is just for obeying the rules, not for security concerns.</p>