Run Microsoft Analyzer over dmd source code

Walter Bright newshound2 at digitalmars.com
Tue Aug 9 01:04:23 PDT 2011


On 8/9/2011 12:14 AM, Don wrote:
> Walter Bright wrote:
>> On 8/8/2011 9:44 PM, Don wrote:
>>> Aargh, you're right.
>>
>> I've been slowly going through the reports. While I've found only one real
>> bug, and several "sort of" problems if you squint at them the right way, most
>> are issues I put in the category of "not up to modern coding best practices".
>> Those I'm working on fixing.
>
> A big issue I've noticed relates to the type of array indices. If it's a 32 bit
> compiler and a 32 bit target, I'd go for size_t.
> But what about a 32-bit compiler with a 64 bit target? An index could be 34 bits...

Well, you cannot have a relocation offset larger than 32 bits on an x86-64.


More information about the Digitalmars-d mailing list