July 03, 2002 __SMALL__ defined in flat-model | ||||
---|---|---|---|---|
| ||||
To my surprise I discovered that __SMALL__ is defined for flat-model (dmc -mx). I find it confusing that it's defined for both real-mode small model and protected-mode flat model. Gisle V. |
July 03, 2002 Re: __SMALL__ defined in flat-model | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gisle Vanem |
Gisle Vanem a écrit :
> To my surprise I discovered that __SMALL__ is defined for flat-model (dmc -mx). I find it confusing that it's defined for both real-mode small model and protected-mode flat model.
>
> Gisle V.
In fact DOSX model is NOT a Flat model: it's a 32 bit Small model: code, data
and stack are 3 different segments.
To know if you are in 16 or 32 bit Small model, test sizeof(int)
roland
|
Copyright © 1999-2021 by the D Language Foundation