Re: [Plib-users] problem with fnt and release mode
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-12-21 01:08:36
|
Paul Bleisch wrote: > > More than likely it is either "global optimizations" or "assume > no aliasing". These two cause the most problems. Yikes! Does "assume no aliasing" mean "assume no pointer aliasing" ?? If so, then you'll want to turn off that sucker - bury it *DEEP*! int x = 6 ; int y ; int *a ; int *b ; a = & x ; b = & x ; ...then later on... *a = 1234 ; *b = 0 ; y = *a ; printf ( "%d\n", y ) ; ...will probably print 1234 with a compiler that assumes there is no pointer aliasing. It's hard to imagine any piece of software of any complexity surviving that kind of punishment. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |