Re: int a = a (Was: Bart's Language)

Liste des GroupesRevenir à cl c  
Sujet : Re: int a = a (Was: Bart's Language)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.c
Date : 18. Mar 2025, 23:27:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrcs09$3ejvg$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 18.03.2025 20:51, David Brown wrote:
[...]  A brief check suggests that gcc will generate code as it
would for "int a = 0;", but it is certainly possible for a compiler to
avoid any kind of initialisation here and let the register or stack slot
used for "a" stay as it was.  That would be a pretty minor efficiency
improvement,

but optimised code is mostly the sum of lots of tiny improvements.

Interesting view. I've learned that such Peephole Optimizations were
not what contribute to optimizations most. It's rather transformations
of structure of various forms that is what "mostly" matters. - That's
what I've learned many decades ago, of course. - So I'm curious where
you've got that view from. (Some reference, maybe? Or was that just a
personal opinion?)

Janis, wondering


Date Sujet#  Auteur
18 Mar 25 * Bart's Language51bart
18 Mar 25 `* Re: Bart's Language50Waldek Hebisch
18 Mar 25  `* Re: Bart's Language49bart
18 Mar 25   `* Re: Bart's Language48Waldek Hebisch
18 Mar 25    +* Re: Bart's Language40bart
18 Mar 25    i+* Re: Bart's Language32David Brown
18 Mar 25    ii`* int a = a (Was: Bart's Language)31Kenny McCormack
18 Mar 25    ii +* Re: int a = a (Was: Bart's Language)22Janis Papanagnou
18 Mar 25    ii i+- Re: int a = a (Was: Bart's Language)1Kaz Kylheku
19 Mar 25    ii i`* Re: int a = a (Was: Bart's Language)20David Brown
19 Mar 25    ii i +- Re: int a = a (Was: Bart's Language)1Kaz Kylheku
19 Mar 25    ii i +* Re: int a = a11Keith Thompson
20 Mar 25    ii i i+* Re: int a = a9Tim Rentsch
20 Mar 25    ii i ii`* Re: int a = a8Keith Thompson
20 Mar 25    ii i ii `* Re: int a = a7David Brown
20 Mar 25    ii i ii  `* Re: int a = a6Keith Thompson
21 Mar 25    ii i ii   `* Re: int a = a5David Brown
21 Mar 25    ii i ii    `* Re: int a = a4Keith Thompson
21 Mar 25    ii i ii     +- Re: int a = a1David Brown
22 Mar 25    ii i ii     `* Re: int a = a2Tim Rentsch
22 Mar 25    ii i ii      `- Re: int a = a1Keith Thompson
20 Mar 25    ii i i`- Re: int a = a1David Brown
19 Mar 25    ii i +* Re: int a = a (Was: Bart's Language)5Chris M. Thomasson
20 Mar 25    ii i i`* Re: int a = a (Was: Bart's Language)4David Brown
20 Mar 25    ii i i `* Re: int a = a (Was: Bart's Language)3bart
20 Mar 25    ii i i  `* Re: int a = a (Was: Bart's Language)2David Brown
20 Mar 25    ii i i   `- Re: int a = a (Was: Bart's Language)1wij
20 Mar 25    ii i `* Re: int a = a (Was: Bart's Language)2Tim Rentsch
20 Mar 25    ii i  `- Re: int a = a (Was: Bart's Language)1David Brown
18 Mar 25    ii +* Re: int a = a (Was: Bart's Language)3David Brown
18 Mar 25    ii i`* Re: int a = a (Was: Bart's Language)2Janis Papanagnou
19 Mar 25    ii i `- Re: int a = a (Was: Bart's Language)1David Brown
19 Mar 25    ii `* Re: int a = a (Was: Bart's Language)5Tim Rentsch
19 Mar 25    ii  +- Re: int a = a1Keith Thompson
19 Mar 25    ii  +- Re: int a = a (Was: Bart's Language)1David Brown
19 Mar 25    ii  `* Re: int a = a (Was: Bart's Language)2Rosario19
20 Mar 25    ii   `- Re: int a = a (Was: Bart's Language)1Tim Rentsch
20 Mar 25    i`* Re: Bart's Language7Waldek Hebisch
21 Mar 25    i `* Re: Bart's Language6Keith Thompson
22 Mar 25    i  `* Re: Bart's Language5Waldek Hebisch
22 Mar 25    i   `* Re: Bart's Language4James Kuyper
22 Mar 25    i    +* Re: Bart's Language2Waldek Hebisch
23 Mar 25    i    i`- Re: Bart's Language1James Kuyper
23 Mar 25    i    `- By definition... (Was: Bart's Language)1Kenny McCormack
18 Mar 25    `* Re: Bart's Language7bart
20 Mar 25     `* Re: Bart's Language6Waldek Hebisch
21 Mar 25      +* Re: Bart's Language4Kaz Kylheku
21 Mar 25      i`* Re: Bart's Language3bart
21 Mar 25      i `* Re: Bart's Language2Kaz Kylheku
22 Mar 25      i  `- Re: Bart's Language1Tim Rentsch
21 Mar 25      `- Re: Bart's Language1bart

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal