Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ajuda com optimizaçao (pentium3)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Mon Feb 09, 2004 8:45 pm    Post subject: Ajuda com optimizaçao (pentium3) Reply with quote

Bom, muitos vao falar, vai ler o manual do gcc! man gcc
mas eu realmente nao sei p**** nenhuma de ingles, muito menos outras linguas, e por causa disso ja e a 3 ou 4 vez q reinstalo o gentoo por erro de flag na hora da compilaçao
por isso queria ver com quem usa pentium3 que me desse flags boas para optimizaçao
meu pc= pentium3 750 mhz placa de video= sis 305 placa de som= creative soundblaster placa mae=asus

e desculpa pela enxeçao de saco..
nodeps, o chato
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Mon Feb 09, 2004 8:55 pm    Post subject: Reply with quote

Vai ao gosto de cada um... Essas devem funcionar bem:

Code:
CFLAGS="-O2 -pipe -march=pentium3 -finline-functions -finline-limit=800 -mmmx -fomit-frame-pointer"

_________________
Hello.
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Mon Feb 09, 2004 9:37 pm    Post subject: Reply with quote

manuchao
oque essas flags fazem? optimiza oke?

ah aproveitando, angus q q se axa de traduzir o man gcc? ehehhehe
acho que ia ajudar bastante, principalmente o pessoal novo no gentoo
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Mon Feb 09, 2004 10:26 pm    Post subject: Reply with quote

Hmmm...

Code:
man gcc


:lol:
_________________
Hello.
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Mon Feb 09, 2004 11:02 pm    Post subject: Reply with quote

<o> *arrancando os cabelos*
Back to top
View user's profile Send private message
fernandotcl
Veteran
Veteran


Joined: 20 Nov 2003
Posts: 1396
Location: Sao Paulo, Brazil

PostPosted: Mon Feb 09, 2004 11:27 pm    Post subject: Reply with quote

Eu uso (ou usava):

Code:
CFLAGS="-pipe -march=athlon-xp -fomit-frame-pointer -mmmx -m3dnow -msse
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Tue Feb 10, 2004 12:20 am    Post subject: Reply with quote

fernandotcl wrote:
Eu uso (ou usava):

Code:
CFLAGS="-pipe -march=athlon-xp -fomit-frame-pointer -mmmx -m3dnow -msse


-march=athlon-xp -m3dnow provavelmente não vai funcionar com um pentium3
_________________
Hello.
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Campinas, SP - Brazil

PostPosted: Tue Feb 10, 2004 12:32 am    Post subject: Reply with quote

Eu uso:
Code:
CFLAGS="-march=pentium3 -O2 -mmmx -msse -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=sse,387 -pipe -ftracer -funroll-loops"

Nota: -ftracer só funciona com gcc >= 3.3
Ah, você pode encontrar algumas explicações (em português) sobre as CFLAGS aqui. Existem outros bons textos, na net, sobre as CFLAGS (bem como bechmarks), mas a maioria é em ingles.
_________________
N.U.S.: A cross platform C++ application development framework
My blog (in Portuguese)
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Tue Feb 10, 2004 4:12 pm    Post subject: Reply with quote

5 vez, é macumba azar ou oke?
angus eu usei as tuas flags na instalaçao.. deu erro na compilaçao de um pacote no emerge -u world zlab syslab algo assim
é as flag mesmo ou pode ser outra coisa?
eu atualizei o emerge antes, emerge sync

edit= eu to usando o stage3-pentium3-20030910.tar.bz2
tem diferença de optimizaçao entre stage3-x86 e stage3-pentium3?
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Campinas, SP - Brazil

PostPosted: Tue Feb 10, 2004 4:36 pm    Post subject: Reply with quote

nodeps wrote:
5 vez, é macumba azar ou oke?
angus eu usei as tuas flags na instalaçao.. deu erro na compilaçao de um pacote no emerge -u world zlab syslab algo assim
é as flag mesmo ou pode ser outra coisa?
eu atualizei o emerge antes, emerge sync

edit= eu to usando o stage3-pentium3-20030910.tar.bz2

Pode ser ... pode não ser. Cola o erro (não é na zlib?) aí que a gente tenta dizer o que é 8)
_________________
N.U.S.: A cross platform C++ application development framework
My blog (in Portuguese)
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Tue Feb 10, 2004 5:02 pm    Post subject: Reply with quote

angus.. zlib
isso mesmo
Back to top
View user's profile Send private message
mamsbrl
n00b
n00b


Joined: 16 May 2002
Posts: 53
Location: Boca Raton - Florida, USA

PostPosted: Tue Feb 10, 2004 6:05 pm    Post subject: Reply with quote

Se você quer ser conservativo use:

Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"



Se você quer ir um pouco mais além use:

Code:
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"


Maiores informacões no site http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Tue Feb 10, 2004 8:24 pm    Post subject: Reply with quote

denovo.. usei as flags ae de cima, e o stage3-x86
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"



o erro eh esse:

make: ** [minigzip] erro1

!!! error: sys-libs/zlib-1.1.4-r2 failed
!!! function src_compile, line 29, exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Tue Feb 10, 2004 8:32 pm    Post subject: Reply with quote

Parece que há um bug com esta versão do zlib, talvez relacionado:
Bug #32140

Mas é necessário que você poste um pouco mais do erro, essa parte que aparece no final só mostra que o pacote não foi instalado porque houve um erro de compilacão, não em que parte do código o erro aconteceu.
_________________
Hello.
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Tue Feb 10, 2004 9:31 pm    Post subject: Reply with quote

md5 src_uri ;-) zlib-1.1.4.tar.bz2
unpacking source
unpacking zlib-1.1.4.tar.bz2 to /var/tmp/portage/zlib-1.1.4-r2/work
applying zlib-1.1.4-gentoo.security.patch...
source unpacked
cheking for shared library support
no shared library support; try without defining cc and cflags
bulding static library libz.a version 1.1.4 with gcc.
checking for unistd.h... no
checking whether to use vnsprintf () or snprintf ().... using snprintf ()
checking for snprintf () in stdio.h.... no.
warning: snprintf() not found, falling back to sprintf () zlib
can build but will be open to possible buffer-overflow security
vulnerabilities. see readme.vsnprintf for more info.
checking for return value of sprintf().... NO
warning apparentyl aprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities. see readme.vsnprintf for more info.
checking for errno.h.... no.
checking for mmap support... no
gcc -march=pentium3 -03 dae fica compilando...
./libz.a((gzio.o)(.text+0x753): in function gzread:
: undefined reference to "errno"
collect2: ld returned 1 exit status
make: ** [example] erro 1
make: ** esperando que outros processos terminem
./libz.a(gzio)(.text+0x44a): in function "gz _open" :
: undefined reference to "errno"
./libz.a(gzio.o)(.text0+753): in function "get_byte" :
:undefined reference to "errno"
./libz.a(gzio.o)(.text+0xd2e) : in function "gzread" :
: undefined reference to "errno"
collect2: ld returned 1 exit status
make: ** [minigzip] erro 1
!!! error: sys-libs/zlib-1.1.4-r2 faile d.
!!! function src_compile, line 29, exitcode 2
!!! (no error message)

isso foi copiado na mao mesmo, deve ter alguns erros no ingles mas da para entender..
oque deve ser isso? tem como arrumar?
Back to top
View user's profile Send private message
nafre
Guru
Guru


Joined: 27 Dec 2003
Posts: 388

PostPosted: Tue Feb 10, 2004 11:06 pm    Post subject: Reply with quote

Olhe isso!! Pentium III (Intel)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"




[/url][/u]
_________________
Nome- Felipe
Nick- Nafre
Idade- 25
Salvador - Bahia - Brasil
Back to top
View user's profile Send private message
nafre
Guru
Guru


Joined: 27 Dec 2003
Posts: 388

PostPosted: Tue Feb 10, 2004 11:07 pm    Post subject: Reply with quote

Que tal fazer mais otimizações em um p3

CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer
-fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"

_________________
Nome- Felipe
Nick- Nafre
Idade- 25
Salvador - Bahia - Brasil
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Tue Feb 10, 2004 11:32 pm    Post subject: Reply with quote

Aff!

mamsbrl wrote:
Se você quer ser conservativo use:

Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"



Se você quer ir um pouco mais além use:

Code:
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"


Maiores informacões no site http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html


nafre wrote:
Olhe isso!! Pentium III (Intel)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"




[/url][/u]

nafre wrote:
Que tal fazer mais otimizações em um p3

CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer
-fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"

_________________
Hello.
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Wed Feb 11, 2004 11:55 am    Post subject: Reply with quote

No meu pentium 3 a 1ghz uso as flags apontadas pelo mamsbrl, e nunca tive problemas.
ManuChao: eu ao menos não repeti :lol:


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Wed Feb 11, 2004 11:56 am    Post subject: Reply with quote

sim, mas como eu arrumo esse negocio do zlib?
ANgusYoung?
Back to top
View user's profile Send private message
nafre
Guru
Guru


Joined: 27 Dec 2003
Posts: 388

PostPosted: Wed Feb 11, 2004 5:02 pm    Post subject: Reply with quote

tenta emergi ela sozinha
Code:
emerge zlib


:)
_________________
Nome- Felipe
Nick- Nafre
Idade- 25
Salvador - Bahia - Brasil
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Wed Feb 11, 2004 5:26 pm    Post subject: Reply with quote

nodeps, uma solucão "alternativa" é tentar instalar usando a versão instável do zlib.

Code:
nano -w /usr/portage/sys-libs/zlib/zlib-1.2.1-r2.ebuild


Troque ~x86 por x86 no campo KEYWORDS (linha 13), e tente proceder com a atualizacão. Embora não resolva de fato o problema com o zlib estável (que eu pelo menos não tenho idéia de como consertar neste ponto), deve permitir terminar a atualizacão.
_________________
Hello.
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Campinas, SP - Brazil

PostPosted: Wed Feb 11, 2004 9:19 pm    Post subject: Reply with quote

nodeps wrote:
sim, mas como eu arrumo esse negocio do zlib?
ANgusYoung?

Eu recomendo fazer o que o Manuchao falou (a 1.2.x mantém a compatibilidade com a 1.1.x).

Cara, você não tem a errno.h
Code:
checking for errno.h.... no.

então pode tentar fazer
Code:
emerge linux-headers

e então reemergir a zlib.
_________________
N.U.S.: A cross platform C++ application development framework
My blog (in Portuguese)
Back to top
View user's profile Send private message
nodeps
n00b
n00b


Joined: 04 Feb 2004
Posts: 45

PostPosted: Wed Feb 11, 2004 9:47 pm    Post subject: Reply with quote

blz, to reinstalando tudo pelo stage1
vou aproveitar e fazer isso q foi sugerido..
vlws ae novamente =*
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Thu Feb 12, 2004 1:44 am    Post subject: Reply with quote

nodeps, http://www.freetranslation.com/
Eu sei, eu sei, parece que um esquizofrênico traduziu, mas é melhor que nada.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum