LDC with MSP430
Luís Marques via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Jun 20 08:08:26 PDT 2017
On Tuesday, 20 June 2017 at 10:52:14 UTC, Nicholas Wilson wrote:
> Might want to confirm the types and sizes involved by adding:
>
> Logger::cout() << "getMemberSize: D type " << type->toChars()
> << " ("<< dSize<<" bytes)" <<" LL type " << *llType <<"(" <<
> llSize<< " bytes)\n";
>
> (I hope I have that right to just copy & paste) between the
> call to
>
> gDataLayout->getTypeAllocSize(llType);
>
> and the assert on line 1348 of llvmhelpers.cpp
Yup, this isn't going to fly:
* * * * * * getMemberSize: D type byte[] (4 bytes) LL type { i32,
i8* }(6 bytes)
According to msp430-gcc, #define __SIZEOF_SIZE_T__ 2, so it's the
LLVM side that's wrong.
Do you know where to change this?
More information about the digitalmars-d-ldc
mailing list