I think that string.mk and config.mak doesn't work well.

A "-mm" or "-ms" option will set first even if set a value to
FIXSTRS_MMODEL.[1][2]

[1]
https://github.com/FDOS/freecom/blob/master/config.std#L58

[2]
https://github.com/FDOS/freecom/blob/master/strings/strings.mak#L5

It is a situation whitch only DOS environment.

I edit string.mk and config.mak .
And successfully build and didn't occurred error in init function.

Thanks

2021年12月5日(日) 21:55 tom ehlert <t...@drivesnapshot.de>:

> Hallo Herr saito yutaka,
>
> am Sonntag, 5. Dezember 2021 um 13:22 schrieben Sie:
>
> > Hello.
>
>
>
>
> > I get a error when memory model is unchange.
> > Compile fixstrs.c is failed.[1]
>
> fixstrs.c is compiled using  STRINGS.MAK, and references
> FIXSTRS_MMODEL.
>
> good luck.
>
> Tom
>
>
>
>
>
> > [1]
> > https://github.com/FDOS/freecom/blob/master/strings/fixstrs.c#L162
>
>
> > Thanks.
> > 2021年12月5日(日) 20:26 TK Chia <u1049321...@caramail.com>:
>
> > 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
>
>
>
>
>
>
> Mit freundlichen Grüßen / with kind regards
> Tom Ehlert
> +49-15151898538
>
>
>
> _______________________________________________
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to