help-gplusplus
[Top][All Lists]
Advanced

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

Re: Crash following optimisation goes away when inserting printf


From: Ulrich Lauther
Subject: Re: Crash following optimisation goes away when inserting printf
Date: Tue, 10 Apr 2007 15:36:28 +0000 (UTC)

Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
: Ulrich Eckhardt <doomster@knuut.de> writes:

: > Every function call modifies the stack and possibly some registers (I'm not
: > 100% sure when and how the latter are modified).

: In addition, adding string literals changes the global data layout,
: and adding a function call changes code section layout.

in addition, printf() may call malloc and thus change the (future) layout of 
data on the heap.

-- 
        -lauther

[nosave]
----------------------------------------------------------------------------
Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
Siemens CT SE 6         Internet: Ulrich.Lauther@siemens.com

Siemens Aktiengesellschaft:
Vorsitzender des Aufsichtsrats: Heinrich v. Pierer;
Vorstand: Klaus Kleinfeld, Vorsitzender; Johannes Feldmayer, Joe Kaeser,
Rudi Lamprecht, Eduardo Montes, Juergen Radomski, Erich R. Reinhardt,
Hermann Requardt, Uriel J. Sharef, Klaus Wucherer
Sitz der Gesellschaft: Berlin und Muenchen
Registergericht: Berlin Charlottenburg, HRB 12300, Muenchen, HRB 6684
WEEE-Reg.-Nr. DE 23691322




reply via email to

[Prev in Thread] Current Thread [Next in Thread]