Get structure size within MASM
问题 I am wondering how to get the size of a structure at compilation time in MASM. Here is the C equivalent code. struct Point { int x; int y; }; printf("Point Stucture size %d\n", sizeof(struct Point)); 回答1: I'm assuming that you'll be declaring the struct in your assembly code. According to the masm32 documentation you've got the following operators available to you: LENGTHOF variable SIZEOF variable SIZEOF type LENGTH expression SIZE expression Description The LENGTHOF operator returns the