Dъvida sobre compilaзгo
#1

Quando eu compilo meu GM com -d3 o servidor fica meio que lagado mas quando eu compilo com -r -w 203 nгo fica.

Qual parвmetro eu devo usar para compilar a final ?

Estou usando zeex compiler
Reply
#2

Com -d3 vocк fica sem otimizaзгo nenhuma, porque й o -d3 + -O0.
Se vocк nгo utilizar nenhum parвmetro para otimizaзгo, por padrгo й -O1.
Ao invйs de compilar com -d3, compile com -d2

Se ainda estiver com dъvidas sobre os argumentos, cheque aqui:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]

Options:
         -A<num>  alignment in bytes of the data segment and the stack
         -a       output assembler code
         -C[+/-]  compact encoding for output file (default=+)
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
         -Dpath   active directory path
         -d<num>  debugging level (default=-d1)
             0    no symbolic information, no run-time checks
             1    run-time checks, no symbolic information
             2    full debug information and dynamic checking
             3    same as -d2, but implies -O0
         -e<name> set name of error file (quiet compile)
         -H<hwnd> window handle to send a notification message on finish
         -i<name> path for include files
         -l       create list file (preprocess only)
         -o<name> set base name of (P-code) output file
         -O<num>  optimization level (default=-O1)
             0    no optimization
             1    JIT-compatible optimizations only
             2    full optimizations
         -p<name> set name of "prefix" file
         -r[name] write cross reference report to console or to specified file
         -S<num>  stack/heap size in cells (default=4096)
         -s<num>  skip lines from the input file
         -t<num>  TAB indent size (in character positions, default=8)
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
         -w<num>  disable a specific warning by its number
         -X<num>  abstract machine size limit in bytes
         -XD<num> abstract machine data/stack size limit in bytes
         -\       use '\' for escape characters
         -^       use '^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
Eu sу utilizo "-;+", "-(+" e "-i" para especificar o diretуrio das includes.
Reply
#3

Quote:
Originally Posted by Ermanhaut
Посмотреть сообщение
Com -d3 vocк fica sem otimizaзгo nenhuma, porque й o -d3 + -O0.
Se vocк nгo utilizar nenhum parвmetro para otimizaзгo, por padrгo й -O1.
Ao invйs de compilar com -d3, compile com -d2

Se ainda estiver com dъvidas sobre os argumentos, cheque aqui:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]

Options:
         -A<num>  alignment in bytes of the data segment and the stack
         -a       output assembler code
         -C[+/-]  compact encoding for output file (default=+)
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
         -Dpath   active directory path
         -d<num>  debugging level (default=-d1)
             0    no symbolic information, no run-time checks
             1    run-time checks, no symbolic information
             2    full debug information and dynamic checking
             3    same as -d2, but implies -O0
         -e<name> set name of error file (quiet compile)
         -H<hwnd> window handle to send a notification message on finish
         -i<name> path for include files
         -l       create list file (preprocess only)
         -o<name> set base name of (P-code) output file
         -O<num>  optimization level (default=-O1)
             0    no optimization
             1    JIT-compatible optimizations only
             2    full optimizations
         -p<name> set name of "prefix" file
         -r[name] write cross reference report to console or to specified file
         -S<num>  stack/heap size in cells (default=4096)
         -s<num>  skip lines from the input file
         -t<num>  TAB indent size (in character positions, default=8)
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
         -w<num>  disable a specific warning by its number
         -X<num>  abstract machine size limit in bytes
         -XD<num> abstract machine data/stack size limit in bytes
         -\       use '\' for escape characters
         -^       use '^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
entгo o -d2 й o mais rбpido ?
Reply
#4

Quote:
Originally Posted by KoloradO
Посмотреть сообщение
entгo o -d2 й o mais rбpido ?
O mais rбpido para compilar й o -O2.
Reply
#5

Quote:
Originally Posted by Ermanhaut
Посмотреть сообщение
O mais rбpido para compilar й o -O2.
O que deixa o servidor mais rapido eu digo
Reply
#6

Acho que os argumentos do compilador nгo interferem no desempenho do servidor, o compilador simplesmente traduz o que vocк escreveu no arquivo pwn para o arquivo amx.
Os modos de otimizaзгo sгo para diminuir o tamanho do arquivo amx e os argumentos de debug sу vгo adicionar erros no console (se houver erros no seu cуdigo).
Deve ser outra coisa.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)