Hello Tom,

may I suggest the following trick (it was used (not necessarily
invented  by) by MSC in ~1990):
the compiler knows when a module uses floating point;
   float x = 1.0;
or
   someFunction(1.3);
qualifies as 'uses floating point stuff'
...
the floating point sprintf stuff was only linked when the program used
somewhere floating point; else floating formatting would only print
'not supported' (IIRC)

Interesting --- I quite like this basic idea.  It will probably take a
while for me to implement it in the toolchain though (I figure I might
need to extend the GNU linker's script language, at least).

Thank you!

--
https://github.com/tkchia


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to