Skip to content

Instantly share code, notes, and snippets.

@praseodym
Created March 25, 2013 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praseodym/5236933 to your computer and use it in GitHub Desktop.
Save praseodym/5236933 to your computer and use it in GitHub Desktop.
SKP 2013 compiler flags
C (GCC 4.7.2):
gcc -g -Wall -O2 -std=gnu99 -static -pipe -o $DEST "$@" -lm
C++:
g++ -g -Wall -O2 -std=gnu++98 -static -pipe -o $DEST "$@"
C++11:
g++ -g -Wall -O2 -std=c++11 -static -pipe -o $DEST "$@"
Java 7:
Compileren: javac -encoding UTF-8 -d . "$@"
Runtime: java -Xrs -Xss8m -Xmx1721440k $MAINCLASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment