Article View: fr.comp.lang.c
Article #15299Re: Tableau: différence entre pile et tas
From: Emmanuel Delahaye
Date: Sat, 01 Oct 2005 11:07
Date: Sat, 01 Oct 2005 11:07
48 lines
2945 bytes
2945 bytes
Richard Delorme wrote on 01/10/05 : > 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. Bah, �a peut correspondre � des contraintes de conception qu'on a envie de voir verifi�es. > 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. Un warning sur les appels r�cursifs non d�sir�s (avec les fonctions 'static', bien s�r) m'irait bien aussi... C'est probablement plus diffcile � d�tecter... -- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html "Clearly your code does not meet the original spec." "You are sentenced to 30 lashes with a wet noodle." -- Jerry Coffin in a.l.c.c++
Technical Details
Message-ID:
<mn.0b137d5a0c1ab91e.15512@YOURBRAnoos.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!infeed-4.proxad.net!news18-e.free.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> <433e6444$0$12992$7a628cd7@news.club-internet.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!news2.google.com!proxad.net!infeed-4.proxad.net!news18-e.free.fr!not-for-mail Subject: Re: Tableau: différence entre pile et tas From: "Emmanuel Delahaye" <emdel@YOURBRAnoos.fr> 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> <433e6444$0$12992$7a628cd7@news.club-internet.fr> Newsgroups: fr.comp.lang.c Message-ID: <mn.0b137d5a0c1ab91e.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Sat, 01 Oct 2005 13:07:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 50 Organization: Guest of ProXad - France NNTP-Posting-Date: 01 Oct 2005 13:07:49 MEST NNTP-Posting-Host: 81.65.109.78 X-Trace: 1128164869 news18-e.free.fr 20856 81.65.109.78:15343 X-Complaints-To: abuse@proxad.net