[coreboot] printk and side effects
Myles Watson
mylesgw at gmail.com
Sat Apr 17 16:41:37 CEST 2010
This is a reminder to myself in case it is obvious to everyone else:
It seems very difficult to guarantee that the removal/insertion of a print
statement has no other effects.
I printed out the location of a variable, and that changed where it was
stored (from a register to being placed on the stack)...
This might not be a traditional "side effect", but it changed the behavior
of the code and surprised me.
Thanks,
Myles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100417/11ce6bcf/attachment.html>
More information about the coreboot
mailing list