Compiler - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compiler (
/showthread.php?tid=286817)
Compiler -
omer5198 - 30.09.2011
Why Does This Line:
Fix This Problem:
pawn Code:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 1664 bytes
Code size: 76296 bytes
Data size: 63260 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4132 cells (16528 bytes)
Total requirements: 157604 bytes
And What is this problem?
Re: Compiler -
Kingunit - 30.09.2011
Honestly, I don't really know why. But most of the times your strings are too big. Then you are getting that: Header size: etc.
You need to increase them. That's also making your gamemode faster.
Re: Compiler -
[MWR]Blood - 30.09.2011
Your string cells are too big, optimize them a little!
Re: Compiler - Double-O-Seven - 30.09.2011
As far as I know, the pragma dynamic directive defines how much dynamic memory will get allocated.
I suppose it's in bytes...
But I'm not sure at all.
Re: Compiler -
Babul - 30.09.2011
you maybe got some long, or deep nested routines like
Code:
switch(condition)
{
case 0:{}
case 1:{}
case 2:{}
//...
case 30:{}
}
or the same with if/else if statements.
functions calling other functions a lot, cause the stack growing up - this data to "return to", needs to be stored in a return-table.
you can avoid warnings about a too large heap/stack size by using the -S parameter in the pawn compiler command line. mostly, the compiler options are looking
only. add that -S16384 so the line changes to
and see if you still get that warning.
Re: Compiler -
sleepysnowflake - 30.09.2011
Code:
#pragma dynamic value
Sets the size, in cells, of the memory block for dynamic data
(the stack and the heap) to the value specified by the expression.
The default size of the dynamic data block is implementation
defined. An implementation may also choose to
grow the block on an as-needed basis (see the host program’s
documentation, or the “Implementor’s Guide” for details).
Credits to pawn-lang.pdf