From: Luca A. <luc...@em...> - 2003-05-22 11:50:05
|
Hi all, as someone of you may have noted, the stack check at the end of the oslib programs from the "examples" directory sometime fails... In particular, it was pointed out the failure in the recently posted diskdemo.c. After some investigation, I arrived to the conclusion that there is no real failure: the fact is that in some situations (in particular, when using gcc 3.* with -O), the compiler performs strange optimizations changing the stack pointer... Hence, we cannot assume that the stack pointer at the beginning and at the end of the program is the same (try -O0 to remove such optimizations... After changing some "extern inline" in "static inline", the examples will compile, and will not complain about the stack pointer anymore). But I could be wrong... Hence, if someone wants to investigate the problem he is more than welcome. BTW, while compiling with -O0 I found some "static inline vs extern inline" errors... I'll commit the fixes in the next days. Luca -- _____________________________________________________________________________ Copy this in your signature, if you think it is important: N O W A R ! ! ! -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: E' iniziata l'era del fax virtuale! Si chiama EmailFax IN e significa: affidabilità, semplicità, qualità e risparmio. Clicca per saperne di più Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1570&d=22-5 |