Good day saito yutaka,

I modified config.mak as follow.
Other settings are same as config.std[1].

---
## Memory model of FreeCOM
!if $(DEBUG)0 == 10
SHELL_MMODEL=l
DEBUG=-DDEBUG
!else
SHELL_MMODEL=l
DEBUG=-UDEBUG -DNDEBUG
!endif
SHELL_MMODEL_COMP=$(SHELL_MMODEL)

Unfortunately, in general, you cannot simply change a MS-DOS program's
memory model from "medium" to "large" willy-nilly --- especially when
the program contains assembly language (.asm) modules.  That simply does
not work.  The compiled output binary will not behave correctly.

Microsoft's blog has a bit of an explanation on what the various 16-bit
memory models (tiny, small, medium, compact, large, huge) mean:

https://devblogs.microsoft.com/oldnewthing/20200728-00/?p=104012

Hope the above helps.

Thank you!

--
https://gitlab.com/tkchia :: https://github.com/tkchia


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to