Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22213

Is there a way to disable inline assembly in GCC?

$
0
0

I'm developing an online judge system for programming contests. As for most programming contests, it is not allowed to use inline assembly in C/C++, so I would like to add the same restriction to my system.

I would like to let GCC produce an error when compiling a C/C++ program containing inline assembly, so that any program containing inline assembly will result in compilation error.

Is there a way to achieve that? Should I pass some command line arguments to GCC?

Note: disabling inline assembly is just for obeying the rules, not for security concerns.


Viewing all articles
Browse latest Browse all 22213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>