File: faustoptflags

package info (click to toggle)
faust 0.9.95~repack1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 164,732 kB
  • ctags: 18,777
  • sloc: cpp: 90,427; sh: 6,116; java: 4,501; objc: 4,428; ansic: 3,301; makefile: 1,298; ruby: 950; yacc: 511; xml: 398; lex: 218; python: 136
file content (26 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

#####################################################################
#                                                                   #
#               Defines the best optimisation flags to use          #
#				on the various platforms. This file is called		#
#				by the faust2xxx scripts. It sets two variables		#
#				$MYGCCFLAGS and $MYICCFLAGS							#
#               (c) Grame, 2013                                		#
#                                                                   #
#####################################################################

#-------------------------------------------------------------------
# Default compilation flags for gcc and icc :
#
if [[ $(uname -m) == armv6l ]]; then		# for Raspberry PI
	MYGCCFLAGS="-O3 -march=armv6zk -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -ftree-vectorize"
elif [[ $(uname -s) == Darwin ]]; then		# for MacOSX (intel)
	MYGCCFLAGS="-O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math -ftree-vectorize"
else 										# for Linux (intel)
	MYGCCFLAGS="-O3 -march=native -mfpmath=sse -msse -msse2 -msse3 -ffast-math -ftree-vectorize"
fi

# for Linux (intel) with icc
MYICCFLAGS="-O3 -xHost -ftz -fno-alias -fp-model fast=2"