4.28. 4.28 Large Arrays and MASM (Windows Programmers Only)

There is a defect in later versions of MASM 6.x that creates some problems when you declare large static arrays in your programs. Now you may be wondering what this has to do with you because we're using HLA, but don't forget that HLA 1.x under Windows compiles to MASM assembly code and then runs MASM to assemble this output. Therefore, any defect in MASM is going to be a problem for HLA users writing Windows code (obviously, this doesn't affect Linux users where HLA generates Gas code).

The problem occurs when the total number of array elements you declare in a static section (static, readonly, or storage) starts to get large. Large in this case is CPU dependent, but it falls somewhere ...

Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.