当前位置 : 145z游戏站 | 魔兽世界 | 技术教程 | 

独家首发魔兽世界服务器Mangos优化编译测试

来源: 作者: 热度:
以下是在下做的MANGOS的一些编译测试!!当然最终优化编译结果在下就保留了! 有兴趣的朋友可以试试!!支持环境是Fedora core 系列和debian系列Linux系统!无错!但是MANGOS的稳定性有一定的区别!!有研究的朋友多多参与~~~没研究该项目的也来捧捧场!!

测试一
CFLAGS="-fno-strict-aliasing -O2" CXXFLAGS="-fno-strict-aliasing -O2" ./configure --prefix=/var/ranshao --sysconfdir=/var/ranshao/etc --with-python --enable-cli --enable-ra --datadir=/var/ranshao --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql

测试二

CFLAGS="-fno-strict-aliasing -O0" CXXFLAGS="-fno-strict-aliasing -O0" ./configure --prefix=/var/ranshao --sysconfdir=/var/ranshao/etc --with-python --enable-cli --enable-ra --datadir=/var/ranshao --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql

关键在于O0这里!!这是优化级别!试试吧!!恩!

测试三
CFLAGS=-O0 CXXFLAGS=-O0 ./configure --prefix=/var/ranshao --sysconfdir=/var/ranshao/etc --with-python --enable-cli --enable-ra --datadir=/var/ranshao --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql

测试四
CFLAGS="-g -O0" CXXFLAGS="-g -O0" ./configure --prefix=/var/ranshao --sysconfdir=/var/ranshao/etc --with-python --enable-cli --enable-ra --datadir=/var/ranshao --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql

(注意:-g 表示可调试gdb)
测试五

CFLAGS="-g -pipe -O0" CXXFLAGS="-g -pipe -O0" ./configure --prefix=/var/ranshao --sysconfdir=/var/ranshao/etc --with-python --enable-cli --enable-ra --datadir=/var/ranshao --with-mysql-libs=/usr/l​
[顶部]