www.delorie.com/archives/browse.cgi | search |
From: | jrubin AT BIX DOT com |
Date: | Fri, 06 Sep 1996 23:45:33 -0400 (EDT) |
Subject: | Low overhead long double support |
To: | djgpp-workers AT delorie DOT com |
Message-id: | <9609062345.memo.12170@BIX.com> |
I think I know a way to provide long double support without encumbering people who don't need it. Library routines like printf can declare pointers to the long double conversion routines with the 'weak' attribute. These pointers will have the value 0 at runtime unless the user explicitly links in the long double library. Callers can test the pointer at runtime and do the right thing.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |