On 04/11/11 13:32, Kjell Rilbe wrote:
> Den 2011-04-11 10:44 skrev Alex Peshkoff såhär:
>>   On 04/11/11 11:35, Kjell Rilbe wrote:
>>> 2. If I'm not mistaken most languages support a "packed" directive that
>>> tells the compiler to not align/pad the struct. Delphi does. But I doubt
>>> it's possible to do the other way around: tell a compiler to pad/align
>>> to N bytes. So, perhaps the most compatible way is to use packed structs
>>> everywhere.
>> That's impossible at least for RISC machines.
> Impossible? Or just a lot of overhead to pack/unpack it each time the 
> data is to be passed across an external boundary?
In that case we must talk not about structure - but about byteflow,
where first value occupies N bytes, second - M, and so on. And yes, I'm
sure that virtual function call can be done faster than unpacking of
such stream.


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to