Raised This Month: $ Target: $400
 0% 

Question about the compilation from cvs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 03-24-2004 , 18:09   Question about the compilation from cvs
Reply With Quote #1

I juste realized that the binaries i compiled from the cvs need the libstdc++ to work! If not, the server segfault :/

Is that normal or did i do something wrong?
NiLuJe is offline
Send a message via MSN to NiLuJe
BAILOPAN
Join Date: Jan 2004
Old 03-24-2004 , 18:10  
Reply With Quote #2

which module
__________________
egg
BAILOPAN is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 03-25-2004 , 16:47  
Reply With Quote #3

Oops, nothing, that were other libs that were missing ;)
NiLuJe is offline
Send a message via MSN to NiLuJe
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 03-26-2004 , 16:20  
Reply With Quote #4

Another question :

If I compile amxx (or mmx, or amxx modules, or everything ^^) with the -O2 flag (or even -O3), does it really improve performance? And is it stable?

And what does the defaut flag -O6 of the makefiles?
NiLuJe is offline
Send a message via MSN to NiLuJe
BAILOPAN
Join Date: Jan 2004
Old 03-26-2004 , 16:34  
Reply With Quote #5

The highest O flag is O3 I think, beyond that it really has no effect. I may be wrong. All it does is specificy another level of compile time optimizations.
__________________
egg
BAILOPAN is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 03-26-2004 , 16:39  
Reply With Quote #6

Okay, for the moment, i just noticed that with the -o2 flags, the compile time is a little bit longer, but the binaries is a bit smaller, and it "works" (not heavily tested, i just checked that it launches everything without crashing xD )

And what about the -d0 flags for the small compiler?
NiLuJe is offline
Send a message via MSN to NiLuJe
BAILOPAN
Join Date: Jan 2004
Old 03-26-2004 , 16:53  
Reply With Quote #7

-d0 is highest optimization for small scripts, and contains no debugging information. while it works, be warned the compiler may take "shortcuts" that have unexpected results with more complicated operations.

also note you can turn all optimizations off with this:
-d3 -C+
__________________
egg
BAILOPAN is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-27-2004 , 04:46   hmm
Reply With Quote #8

Bail: What is the best for decent optimization?
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
XAD
Senior Member
Join Date: Mar 2004
Location: Sweden
Old 03-27-2004 , 05:01  
Reply With Quote #9

Which version are you guys compiling with??
I run the latest Slackware with GCC 3.2.3 and this one doesn't like some of the coding...

/X

PS! Original AMXmod 0.9.6j compiles fine (testing now with ahtlon-xp optimization)...
XAD is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 03-27-2004 , 05:56  
Reply With Quote #10

Compiling everything with gcc 2.95.4 from a debian package, I'll try with the latest gcc 3.3.3, but i think i already tried and it doesn't works, sometimes compilation error, sometimes the binarie is not "complete" :/

And same question as magicshot : what is the best for decent optimisation?

XAD: What do you change to have an athlon-xp otpimisation?

EDIT: Same as XAD, the original amx 0.9.6j compile well with gcc 3.3.3, (no compilation error) but the binaries is a lot smaller (default optimisation)

gcc 2.95 : 268,8 ko
gcc 3.3.3 : 190,5 ko

... and ... Got a bad load with the gcc 3.3 compile ^^ The 2.95 one works fine.

EDIT2: Apparently, I got the same binaries (in size at least) with the -O3 & -O6 flags... And with the -O2 flags, the binaires are a little bit smaller...
NiLuJe is offline
Send a message via MSN to NiLuJe
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode