Compiler
#1

Why Does This Line:
pawn Code:
#pragma dynamic 145000
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?
Reply
#2

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.
Reply
#3

Your string cells are too big, optimize them a little!
Reply
#4

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.
Reply
#5

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
Code:
-r
only. add that -S16384 so the line changes to
Code:
-r -S16384
and see if you still get that warning.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)