Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Verständnisfragen zu gcc Versionen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Tue Dec 28, 2004 2:54 pm    Post subject: Verständnisfragen zu gcc Versionen Reply with quote

Hallo Leute,
hatte einige Probleme gcc-3.4.3 auf mein System (AMD64) zu kompilieren. Hab dazu einen Thread in unserem Forum offen gehabt und schließlich eine Lösung
im Gentoo Bug System unter der BUG ID 72379 gefunden :)

Meine Frage bezieht sich auf die verschiedenen Versionen von gcc. Ein
Code:

gcc-config -l

gibt folgendes aus:
Code:

bash-2.05b# gcc-config -l
[1] x86_64-pc-linux-gnu-3.4.3 *
[2] x86_64-pc-linux-gnu-3.4.3-hardened
[3] x86_64-pc-linux-gnu-3.4.3-hardenednopie
[4] x86_64-pc-linux-gnu-3.4.3-hardenednossp
bash-2.05b#

Was ist der Unterschied zwischen den verschiedenen hardened Versionen?
Und was ist eigentlich genau mit hardened gemeint?

Hoffe Ihr könnt mich aufklären :)


Thx,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
zworK
Guru
Guru


Joined: 07 May 2004
Posts: 308

PostPosted: Tue Dec 28, 2004 3:00 pm    Post subject: Reply with quote

Über den gcc 3.4.x kann ich nicht viel sagen da ich ihn noch nicht verwendet habe.
Infos über hardened gibts hier
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3463
Location: Berlin

PostPosted: Tue Dec 28, 2004 8:48 pm    Post subject: Reply with quote

Vielleicht hilft Dir das weiter
https://forums.gentoo.org/viewtopic.php?p=1915207&highlight=#1915207

Außerdem gibt es z.B. bei den von AMD für den 64 bit Prozessor empfohlenen Optionen Unterschiede.
Code:

#für gcc3.4 CFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
#für gcc3.3 CFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -fomit-frame-pointer -pipe"
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Dec 30, 2004 7:47 pm    Post subject: Reply with quote

Quote:

Über den gcc 3.4.x kann ich nicht viel sagen da ich ihn noch nicht verwendet habe.
Infos über hardened gibts hier

Merci, und mal wieder etwas schlauer geworden.

Quote:

Vielleicht hilft Dir das weiter
https://forums.gentoo.org/viewtopic.php?p=1915207&highlight=#1915207

Hmm, was hat der Link mit diesem Thread zu tun?
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Dec 30, 2004 8:44 pm    Post subject: Reply with quote

flammenflitzer wrote:
Vielleicht hilft Dir das weiter
https://forums.gentoo.org/viewtopic.php?p=1915207&highlight=#1915207

Außerdem gibt es z.B. bei den von AMD für den 64 bit Prozessor empfohlenen Optionen Unterschiede.
Code:

#für gcc3.4 CFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
#für gcc3.3 CFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -fomit-frame-pointer -pipe"

Streich bitte das -ffast-math da raus.
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Dec 30, 2004 9:12 pm    Post subject: Reply with quote

Hi Earthwings,
ist es ein falscher Paremter oder eine unsichere Funtkion?
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Haldir
Guru
Guru


Joined: 27 Sep 2002
Posts: 546

PostPosted: Thu Dec 30, 2004 9:18 pm    Post subject: Reply with quote

Unsicher, benützt teils extrem optimierte mathematische Funktionen die nicht ANSI oder IEEE konform sind. Im Normalfall treten keine Fehler auf, aber sie können auftreten und bis auf ein paar Ausnahmeprogramme ist der Geschwindigkeitszuwachs von ffast-math nicht merkbar.
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Dec 30, 2004 9:21 pm    Post subject: Reply with quote

@ Haldir:
vielen Dank für die detaillierte Aussführung zu "-ffast-math"

Thx,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Dec 30, 2004 10:59 pm    Post subject: Reply with quote

Oder um ciaranm zu zitieren (aus dem Kopf): "Everyone using -ffast-math globally is insane" :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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