Implementing native TLS on OS X in DMD

Dan Olson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Jan 11 21:44:56 PST 2016


kinke <noone at nowhere.com> writes:

> On Saturday, 9 January 2016 at 20:07:34 UTC, Dan Olson wrote:
>> Just re-reading and it looks like alignments in your example are too
>> big for a 4-byte type, assuming var is an int.  .align only needs to
>> be 2 here.
>
> This is probably due to
> https://github.com/kinke/ldc/commit/a39997d326f0d3da353d8b9f27ffd559e6fcc5d7.

I haven't carefully read the commit yet.  Is the extra alignment
intended for all vars declarations?  It probably is not a big issue, but
the following:

ubyte a,b,c,d,e,f,g,h;

uses 64-bytes versus the 8-bytes from before.

-- 
Dan


More information about the digitalmars-d-ldc mailing list