flags compilation blender

トップ ページ

このメッセージに返信
著者: ALD
日付:  
To: guilde
題目: flags compilation blender
Bonjour,

je me lance dans la compilation de blender afin de l'optimiser sur la
machine de calcul de rendu (asus P5N-MX, Q6600, 1Go ddr2 800Mhz).

j'ai lu pas mal de tutos (en français) sur la compilation elle même,
mais pour optimiser, il est nécessaire de connaitre la bonne utilisation
des flags correspondant au proceseur

Pour cette partie, je n'ai rien trouvé en francais ce qui ajoute une
difficulté supplémentaire à un domaine que je ne connais pas.

j'ai trouvé ceci:
http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

et je tente de m'en servir pour comprendre ce qui a été fait dans cet
extrait du fichier "user-config.py" utilisé pour passer des instructions
à scons lors de la compilation de blender:


CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=i686']
# CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium-m','-msse2']
# CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium4','-msse2']
# CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-mtune=athlon-xp','-msse','-m3dnow']
# CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64']
# CCFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64','-msse3']

CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=i686']
# CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium-m','-msse2']
# CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium4','-msse2']
# CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-mtune=athlon-xp','-msse','-m3dnow']
# CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64']
# CXXFLAGS =
['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64','-msse3']

#CPPFLAGS = ['-DXP_UNIX']
CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=i686']
# CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium-m','-msse2']
# CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=pentium4','-msse2']
# CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-mtune=athlon-xp','-msse','-m3dnow']
# CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64']
# CPPFLAGS =
['-DXP_UNIX','-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=athlon64','-msse3']

REL_CFLAGS = ['-O3']
REL_CCFLAGS = ['-O3']



Qui pourrait m'expliquer la signification de:
ccflags
cxxflags
cppflags

d'autre part, quelle différence entre entre "march" et "mtune"?


Merci d'avance

PS: si qqun a l'adresse d'un tuto en français, je suis evidement
preneur.