Code center > Darwinbots Program Source Code

How serios is Aliasing? Is there any tools?

(1/1)

Botsareus:
Numsgil, I am pretty sure db2 does not use aliasing, but just in case it does:

1.) If I set "assume no aliasing" to true, can it cause runtime errors 6 or div/0?
2.) Are there any tools out there to tell if at any line in the vb6 db2 code uses aliasing? I looked for such a tool, did not find any.

Numsgil:
I doubt you'd see much of a performance improvement enabling it.  And it's possible there's some variables aliased somewhere.  So it's probably not worth the effort to play with it.

To give some perspective, aliasing is an issue in C++ as well, and even in highly performant C++ code like you'd find in a video game engine no one is really messing with the aliasing issues, except possibly in the case of some really low level operations around vectors and matrices.  It's just not worth the mental effort to think about.

Botsareus:
It was initially enabled.
In-fact, when I got control of the source code, all unsecure compiler options where enabled.
 :P

I'll disable them all on my next mod.

edit: I have not seen much performance change, so, unless you think otherwise, it should be a safe bet.

Botsareus:
That's cool then. I am disabling all unsecure compile options on my next revision as no one seems to be against it.

Navigation

[0] Message Index

Go to full version