anchao commented on PR #17878: URL: https://github.com/apache/nuttx/pull/17878#issuecomment-3771450898
> > > > If the purpose of this modification is to facilitate debugging, then I have no objections. Alternatively, could we add a DEBUG flag to this config? Anyway, this is not a big deal. > > > > > > > > > > > > not only for debugging, the network stack code may need move into TCM to get the best performance on some platform. but the code layout arrangement is impossible with lto. > > > > > > So why not use .a to specified in the linker script? If LTO is disabled, wouldn’t LTO (O3) and LD optimizations be mutually exclusive in some performance-critical scenarios? > > > > .a doesn't work too, it's the limitation of LTO implementation. Actually, we use .a static libraries for LTO, with full support from the linker script. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
