On Mon, Feb 17, 2025, 11:44 AM Paul Dufresne via Freedos-devel < freedos-devel@lists.sourceforge.net> wrote:
> Now that I see that FreeCOM wants to have a different memory model for > fix_strings.c... > I now realized I don't really knows if: Is it ok to mix different memory > model inside a DOS program? > no it is not generally ok to mix memory models. it can be done with care, but otherwise you will corrupt the stack by pushing or popping near/far values when far/near values are expected. fixstrs is not compiled into freecom, it is a utility built during compilation and so can be a different memory model or even different architecture / executable format. there are several such utilities that create build issues when switching between modern windows, Linux and DOS. Jeremy
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel