Article View: fr.comp.lang.c
Article #15298Re: Tableau: différence entre pile et tas
From: Richard Delorme
Date: Sat, 01 Oct 2005 10:26
Date: Sat, 01 Oct 2005 10:26
33 lines
2442 bytes
2442 bytes
Emmanuel Delahaye a �crit : > (supersedes <mn.0a3e7d5abbfd95b0.15512@YOURBRAnoos.fr>) > > Harpo wrote on 30/09/05 : > >> Emmanuel Delahaye wrote: >> >>> Please, pas de mauvaises habitudes. Objet > 10 bytes -> m�moire >>> allou�e. Point. >> >> >> Pour moi, c'est g�n�ralement au-dessus de 4000 et quelques. Sauf dans >> les fonctions r�cursives, de cours. > > > Ce serait interessant que ce soit contr�lable par le compilateur, genre > > -Wmax-auto-object-size=<n> > > avec n 1..65536 > > -Wmax-auto-object-size=32 > > main.c:42 Warning: The size of local object 'mechant_tableau_de_la_mort' > exceeds 32 bytes. �a ne tient pas debout. L'utilisation de la pile est dynamique, et avoir un objet de 1000 bytes dans une fonction appel� une fois est moins g�nant que d'avoir un objet de 10 bytes dans une fonction qui s'appelle r�cursivement 1000 fois. -- Richard
Technical Details
Message-ID:
<433e6444$0$12992$7a628cd7@news.club-internet.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!grolier!v.t-online.fr!t-online.fr!not-for-mailReferences:
<1127923112.347881.79740@z14g2000cwz.googlegroups.com> <433c3502$0$17236$8fcfb975@news.wanadoo.fr> <1128062877.527491.168280@g49g2000cwa.googlegroups.com> <433d1e98$0$5409$8fcfb975@news.wanadoo.fr> <1128080997.753599.258340@g49g2000cwa.googlegroups.com> <mn.f3ba7d592302afb8.31483@laposte.net> <1128095986.321098.217870@g47g2000cwa.googlegroups.com> <dhjoah$bd4$1@shakotay.alphanet.ch> <mn.f4f37d59af0a936c.15512@YOURBRAnoos.fr> <433d902b$0$7830$8fcfb975@news.wanadoo.fr> <mn.0a8d7d5a109bd49e.15512@YOURBRAnoos.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,9ee84542aed426f5 X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!grolier!v.t-online.fr!t-online.fr!not-for-mail Date: Sat, 01 Oct 2005 12:26:14 +0200 From: Richard Delorme <abulmo@nospam.fr> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050801) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: fr.comp.lang.c Subject: Re: Tableau: différence entre pile et tas References: <1127923112.347881.79740@z14g2000cwz.googlegroups.com> <433c3502$0$17236$8fcfb975@news.wanadoo.fr> <1128062877.527491.168280@g49g2000cwa.googlegroups.com> <433d1e98$0$5409$8fcfb975@news.wanadoo.fr> <1128080997.753599.258340@g49g2000cwa.googlegroups.com> <mn.f3ba7d592302afb8.31483@laposte.net> <1128095986.321098.217870@g47g2000cwa.googlegroups.com> <dhjoah$bd4$1@shakotay.alphanet.ch> <mn.f4f37d59af0a936c.15512@YOURBRAnoos.fr> <433d902b$0$7830$8fcfb975@news.wanadoo.fr> <mn.0a8d7d5a109bd49e.15512@YOURBRAnoos.fr> In-Reply-To: <mn.0a8d7d5a109bd49e.15512@YOURBRAnoos.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Lines: 33 Message-ID: <433e6444$0$12992$7a628cd7@news.club-internet.fr> Organization: Club-Internet / T-Online France NNTP-Posting-Date: 01 Oct 2005 10:26:12 GMT NNTP-Posting-Host: 62.34.128.94 X-Trace: 1128162372 news.club-internet.fr 12992 62.34.128.94 X-Complaints-To: abuse@club-internet.fr