Re: Re : Tr : [redundency elimination, code motion, commun expression elimination] GCC optimizations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/26/11 03:06, charfi asma wrote:
> Hello every body,
> 
> First of all, thank you for all your responses ;)
> 
> 
> this situation is frequent in real time and embedded system
> development (developper use switch cas statements to express the
> behavior of the system).
> 
> I think that GCC purpose is to help developper to produce an
> optimized code for their application. developper are not obliged to
> optimize the code, we have to be happy if they manage to write the
> correct code (that runs just like developper want it to run).
> Otherwise, optimization is the GCC stuff... @ David: if (x=1) was a
> typo, I meant if (x==1).
> 
> you said that The "tail merging" and "block merging" mentioned by
> Jeff Law sounds like optimisations to suit such cases.
> 
> I tested with gcc 4.6 (the current gcc version) I compiled the code
> using -Os and GCC did not optimize the code. did block merging and
> tail merging are not included in -Os ?
> 
Tom's changes aren't in GCC 4.6, you'd have to test the current sources.

jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOgK3kAAoJEBRtltQi2kC7IpkH/1aZzqaHYWOgBotOntRoMsHM
SS1qmsr2AdK33tiEDCvMVRA3sfAN8s8wfhpudYK0dTL5/VG2KhNipdSHZp3N7CgX
7EYuOebVU0na1ucvBChHdCDiIXV5u81UjPr8t7fwK7x78k5/2xeuMAv2U2DvPWmk
8hH9IDzFppSWFE413gnT5ONEoYImINWaAiiAINU/OsxblTpTh4UGl7wfdygzIcGc
k3txE2fRGel07hJvy0T72MtkPuCfw2ISa262/yN4zpEIwh8nssljy4pb4Wos55Dl
IAEHNgxlAxfJoDVjpZVmqf80a8nNRa9OV1pUlN5+gYM/QABmT25QIVE2KWse3j4=
=L+dW
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux