Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc czituje z -march=core2
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2540
Location: Zduńska Wola, Poland.

PostPosted: Fri Oct 23, 2009 6:03 pm    Post subject: gcc czituje z -march=core2 Reply with quote

Prosty test:
Code:
slashbeast@ragnarok ~ % gcc -Q -c -v -march=core2 --help=target -mssse3 > core2
slashbeast@ragnarok ~ % grep sse core2
  -mno-sse4                         [enabled]
  -msse                             [enabled]
  -msse2                            [enabled]
  -msse2avx                         [disabled]
  -msse3                            [enabled]
  -msse4                            [disabled]
  -msse4.1                          [disabled]
  -msse4.2                          [disabled]
  -msse4a                           [disabled]
  -msse5                            [disabled]
  -msseregparm                      [disabled]
  -mssse3                           [enabled]

Z -mssse3 dodaje od sse do sse3 i ssse3, bez -mssse3 test:
Code:
slashbeast@ragnarok ~ % gcc -Q -c -v -march=core2 --help=target > core2
slashbeast@ragnarok ~ % grep sse core2
  -mno-sse4                         [enabled]
  -msse                             [disabled]
  -msse2                            [disabled]
  -msse2avx                         [disabled]
  -msse3                            [disabled]
  -msse4                            [disabled]
  -msse4.1                          [disabled]
  -msse4.2                          [disabled]
  -msse4a                           [disabled]
  -msse5                            [disabled]
  -msseregparm                      [disabled]
  -mssse3                           [disabled]


Cos tutaj bardzo nie halo jest.
_________________
github
Back to top
View user's profile Send private message
lazy_bum
l33t
l33t


Joined: 16 Feb 2005
Posts: 665

PostPosted: Sat Oct 24, 2009 5:42 pm    Post subject: Reply with quote

Jako ciekawostkę dodam:
Code:
tmp (: gcc -Q -c -v -march=native --help=target > native
tmp (: grep sse native
  -mno-sse4                         [enabled]
  -msse                             [disabled]
  -msse2                            [disabled]
  -msse3                            [disabled]
  -msse4                            [disabled]
  -msse4.1                          [disabled]
  -msse4.2                          [disabled]
  -msse4a                           [disabled]
  -msse5                            [disabled]
  -msseregparm                      [disabled]
  -mssse3                           [disabled]
tmp (: grep model\ name /proc/cpuinfo
model name   : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
model name   : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz

_________________
roslin uberlay | grubelek
Back to top
View user's profile Send private message
Bialy
Guru
Guru


Joined: 20 Mar 2006
Posts: 448

PostPosted: Sat Oct 24, 2009 8:36 pm    Post subject: Reply with quote

I za przeproszeniem kończą się głupie komentarz nt. dlaczego w CFLAGS masz dodane zestawy instrukcji :wink:
Back to top
View user's profile Send private message
gentoousr
n00b
n00b


Joined: 04 Nov 2007
Posts: 23

PostPosted: Sun Dec 12, 2010 11:24 pm    Post subject: Reply with quote

dobrze dodaje flagi przy kompilacji mozna zobaczyc, te wasze sprawdzanie zle pokazuje poprostu;

Code:
echo | gcc -dM -E - -march=core2
i porownac, u mnie ok

ale jak ktos sie obawia mozna dodac statycznie w cflags.

//edit troche stary ten temat - nie zauwazylem
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2540
Location: Zduńska Wola, Poland.

PostPosted: Mon Dec 13, 2010 9:48 am    Post subject: Reply with quote

Dobrze, ze odpisales. Temat stary ale wiadomosci w nim zawarte zawsze beda na czasie.
_________________
github
Back to top
View user's profile Send private message
lsdudi
Guru
Guru


Joined: 12 Nov 2006
Posts: 345
Location: cracow

PostPosted: Mon Dec 13, 2010 11:26 am    Post subject: Reply with quote

gdzieś czytałem że wymusznie sse dla programów nienapisanych pod tą optymalizacje powoduje efekt odwrotny od zamierzonego czyli spadek wydajności więc być może chodzi właśnie o to.
_________________
RLU#416942
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt 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