On 2/17/2025 8:43 AM, Paul Dufresne via Freedos-devel 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?
Absolutely NOT! While there might be some edge cases where this
possibly, maybe, eventually could work, this is in general a disaster
waiting to happen. As different memory models have different ways to
handle pointers and specially in C, with little protection on what you
could do with pointer, and in assembler, where you have no protection at
all, there is no guarantee that you are actually accessing the portion
of memory you actually want to address. Or not.
Why would that problem even come up? I am programming for DOS for 43
years now and never had that problem, ever, that I would have to do
something like that...
Ralf
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel