Re: Unions in Assembly Language

From: f0dder (f0dder_spicedham_at_flork.dk)
Date: 08/26/04


Date: Thu, 26 Aug 2004 16:59:17 +0200

The Wannabee wrote:

> Yes. Jump table or calltable is fine to me. I made a typo in the
> original post. First I asked Percival, because he is a HLA
> programmer, because I wanted to see the HLA equvivalent. But to see
> more implementations is nice too. Since Percival didnt adress the
> full query, here is the RosAsm equivalent of you C code : (btw, your
> c code doesnt include dessisionmakeing for the table, so I will also
> not include this, allthough I had expected this to be part of the
> solution, as otherwise the solution will be less useful)
>
>
decision making? Do you mean bounds checking?

> The RosAsm equivalent of your code :
>
*snip*
What VC++ generates is not too far from your asm code - except it
uses normal stack calling convention.