[Vm-dev] getting rid of pointer aliasing
nicolas.cellier.aka.nice at gmail.com
Fri Mar 4 21:46:46 UTC 2016
pointer aliasing is evil/dangerous on modern C Compiler.
Though it's kind of easy to remove most of them.
self cCode:'((long *)addr) = ((long *)(&floatValue))'.
can easily become:
self cCode: [self mem: addr cp: (self addressOf: floatValue) y: (self
Modern compiler will generate very efficient code for that.
Would you like me to proceed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev