July 03, 2002
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

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