Raised This Month: $ Target: $400
 0% 

Compile on Win32 / Linux difference ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
James
Senior Member
Join Date: Dec 2004
Old 01-23-2007 , 13:46   Compile on Win32 / Linux difference ??
Reply With Quote #1

Hello,
I run some hlds's on Linux, some on Windows. When I compile plugins on linux(gentoo), .amxx files have bigger size than win32 .amxx. It is laborious, besides, you offer Web compiler! Web compiler produce only one .amxx isnt'?

For sure I compile my plugins 2 way, for Linux on linux, for Windows on Windows.

So my question: is better to compile one script on multiple platforms? Or really doesnt matter where are plugin compiled, and distributing one .amxx is good for me?

Thx for answers
__________________
Do good things, and good things happen to you

Last edited by James; 01-23-2007 at 13:48.
James is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 01-23-2007 , 13:48   Re: Compile on Win32 / Linux difference ??
Reply With Quote #2

It shouldnt matter if a plugin is compiled using the web compiler for windows or linux. The outputted amxx file is the same for either platform.

Its the core modules and so forth that are OS dependent.
Roach is offline
James
Senior Member
Join Date: Dec 2004
Old 01-23-2007 , 14:09   Re: Compile on Win32 / Linux difference ??
Reply With Quote #3

And when I use compiler on windows for example? Should I use output plugin for Linux too? Or Linux compiled .amxx on Windows? I believe that works, but when sizes are others i need sureness i will not loose some power of machine ;)
__________________
Do good things, and good things happen to you

Last edited by James; 01-23-2007 at 14:14.
James is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 01-23-2007 , 15:30   Re: Compile on Win32 / Linux difference ??
Reply With Quote #4

I've adminned both linux and win32 machines, and at the time i compiled plugins for the linux machine on a win32 machine w/out any problem.

I wouldnt worry about it. The .amxx that the webcompiler spits out will work for both win32 and linux machines.
Roach is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 01-23-2007 , 16:24   Re: Compile on Win32 / Linux difference ??
Reply With Quote #5

James: Make sure the include folder is the same at both machines, the stocks probably make the difference in filesize.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-23-2007 , 19:13   Re: Compile on Win32 / Linux difference ??
Reply With Quote #6

I BELIEVE that the reason linux would be bigger is due to it shoving 64 bit into the file alongside 32 bit.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
James
Senior Member
Join Date: Dec 2004
Old 01-24-2007 , 10:48   Re: Compile on Win32 / Linux difference ??
Reply With Quote #7

Quote:
Originally Posted by MaximusBrood View Post
James: Make sure the include folder is the same at both machines, the stocks probably make the difference in filesize.
I use latest include files from 1.76c install for linux and windows..
__________________
Do good things, and good things happen to you
James is offline
AndraX2000
Member
Join Date: Mar 2006
Location: 39°57' N 83°14' W
Old 01-24-2007 , 11:51   Re: Compile on Win32 / Linux difference ??
Reply With Quote #8

I've found that simply changing the output filename can change the size of the file by a few bytes. If the difference is only a few bytes it's probably because the path to the plugin you are compiling is longer in linux.
See http://forums.alliedmods.net/showpos...29&postcount=5
__________________
Get maps at http://www.counter-strike-maps.net
Shoot me at:

AndraX2000 is offline
James
Senior Member
Join Date: Dec 2004
Old 01-24-2007 , 15:56   Re: Compile on Win32 / Linux difference ??
Reply With Quote #9

I have differences like this:
.sma 29kB
.amxx linux 36.3kB
.amxx win32 32,5kB

.sma 7,6kB
.amxx linux 6,2kB
.amxx win32 5,6kB
__________________
Do good things, and good things happen to you
James is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 01-24-2007 , 17:06   Re: Compile on Win32 / Linux difference ??
Reply With Quote #10

Quote:
Originally Posted by James View Post
I have differences like this:
.sma 29kB
.amxx linux 36.3kB
.amxx win32 32,5kB

.sma 7,6kB
.amxx linux 6,2kB
.amxx win32 5,6kB
Simply put, the source is not the same on both machines.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
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:03.


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