hartmannathan commented on PR #6613:
URL: https://github.com/apache/incubator-nuttx/pull/6613#issuecomment-1185565868

   > > Once we move CONFIG_HAVE_LONG_LONG to Kconfig, we can apply @acassis 's 
suggestion to simplify the default setting. Look like @ALTracer will provide a 
patch for this.
   > 
   > In light of your recent refactoring of most toolchain flags in Kconfig 
tree and #6123 bringing LTO support, -- yes, I think I'd like to add Kconfig 
options for HAVE_LONG_LONG and friends (HAVE_FLOAT, HAVE_DOUBLE, 
HAVE_LONG_DOUBLE) somewhere under Optimizations (where FRAME_POINTERS are) or 
under System Type (where LTO is). Of course it's `default y` and depends on 
TOOLCHAIN_GCC/CLANG/BUILDROOT or whatever it is now (I'm still sitting on 
release/10.3 branch with my project). Maybe I'll even hide it with 
CONFIG_EXPERIMENTAL.
   > 
   > While it's silly to disable FLOAT, for example, I think it's for user to 
decide to drop DOUBLE. Like C++ has a principle "You only pay for what you use".
   
   It's not always silly to disable FLOAT. Depends on what you need. Various 
embedded libc support a choice of printf() that supports "%f" vs a printf() 
that doesn't support it, to save code size (by choosing which version of the 
library to link). That's up to each application to decide what it needs. 
Personally I am in favor of allowing NuttX to be reduced to very minimal sizes 
for certain things, and I also like that you can turn on all the bells and 
whistles for bigger embedded systems.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to