Jump to content

Calling Leader and other interested participants: GCC Optimizer ??


Recommended Posts

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

  • ammulu

    9

  • krldr871

    7

  • andhrabalayya

    7

  • Nellore Pedda reddy

    4

Popular Days

Top Posters In This Topic

Posted

nuvu ready aah ??
[quote author=ammulu link=topic=126354.msg1399002#msg1399002 date=1290914301]
sCo_hmmthink sCo_hmmthink sCo_hmmthink
[/quote]

Posted

[quote author=andhrabalayya link=topic=126354.msg1399010#msg1399010 date=1290914453]
nuvu ready aah ??
[/quote]

asalu game ennti? sCo_hmmthink sCo_hmmthink

Posted

I will post two codes : A and B see how well you can anticipate gcc Optimizer !!
Will the code A be as fast as the code on B when compiled with an optimizing gcc?

lets start:
A) int triple_it(int x) {
  return x * 3;
}

B) int triple_it(int x) {
  return x +x+x;
}

gcc A lo x ni 3 tho multiplication... x+x+x ga transform chestunda for optimization ?

Posted

Leader baa busy ga unnadu  sSc_hiding2 sSc_hiding2

Posted

GNU C Compiler
[quote author=AADINAYAKUDU link=topic=126354.msg1399023#msg1399023 date=1290914818]
gcc ante enti... sCo_hmmthink sCo_hmmthink sCo_hmmthink
[/quote]

Posted

[quote author=andhrabalayya link=topic=126354.msg1399037#msg1399037 date=1290915110]
I will post two codes : A and B see how well you can anticipate gcc Optimizer !!
Will the code A be as fast as the code on B when compiled with an optimizing gcc?

lets start:
A) int triple_it(int x) {
  return x * 3;
}

B) int triple_it(int x) {
  return x +x+x;
}

gcc A lo x ni 3 tho multiplication... x+x+x ga transform chestunda for optimization ?

[/quote]
[quote author=ammulu link=topic=126354.msg1399048#msg1399048 date=1290915357]
[img]http://www.gifsoup.com/view1/1351924/benzbabuposts-o.gif[/img]
[/quote]
@3$% nadi kuda idhe paristhi andhrabalayya baa, nenu life sciences  sSc_hiding2

Posted

Cheers !! Anduke Specific ga Leader, GCC Optimizer ani hint icha... btw ekkadnunchi nuvu ?? US or UK
[quote author=allbakara link=topic=126354.msg1399057#msg1399057 date=1290915629]
@3$% nadi kuda idhe paristhi andhrabalayya baa, nenu life sciences  sSc_hiding2
[/quote]

Posted

[quote author=andhrabalayya link=topic=126354.msg1399041#msg1399041 date=1290915211]
GNU C Compiler
[/quote] sorry2 mama manu antha touch ledu vaati meeda....

Posted

[quote author=andhrabalayya link=topic=126354.msg1399060#msg1399060 date=1290915712]
Cheers !! Anduke Specific ga Leader, GCC Optimizer ani hint icha... btw ekkadnunchi nuvu ?? US or UK
[/quote]u.s

Posted

Answer#
Yes GCC Optimizes it like in B.Processor i386 architecture aithe gcc uses add instruction, x86 aithe leal instruction, ppc aithe shift left by 1

[quote author=andhrabalayya link=topic=126354.msg1399037#msg1399037 date=1290915110]
I will post two codes : A and B see how well you can anticipate gcc Optimizer !!
Will the code A be as fast as the code on B when compiled with an optimizing gcc?

lets start:
A) int triple_it(int x) {
  return x * 3;
}

B) int triple_it(int x) {
  return x +x+x;
}

gcc A lo x ni 3 tho multiplication... x+x+x ga transform chestunda for optimization ?
[/quote]

×
×
  • Create New...