davids5 commented on PR #2201: URL: https://github.com/apache/nuttx-apps/pull/2201#issuecomment-1819138950
Yokogawa 700937 > > Why not allocate these in a struct and reduce memory footprint that just including that app costs? > > Could you please expand more with maybe a kind of example. I'm not fully following your proposal. I think all those local `static const`s will be optimized out by compiler anyway. I did not think these were local. Also as globals they do not conform to the coding standard. My point was placing all the variables in a struct allocated at run time will reduce the data size to a single pointer or 0 if it is passed as an argument. -- 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]
