lupyuen commented on PR #15444:
URL: https://github.com/apache/nuttx/pull/15444#issuecomment-2586224570

   @yf13 Can you also try `static char` instead of `static const char`? They 
show different results for knsh64:
   
   ```c
   static char test_static[] = "Testing Static Var";
   static const char test_static_const[] = "Testing Static Const Var";
    int main(int argc, FAR char *argv[]) {
     printf("test_static=%s\n", test_static);
     printf("Address of test_static=%p\n", test_static);
     printf("test_static_const=%s\n", test_static_const);
     printf("Address of test_static_const=%p\n", test_static_const);
   
   test_static=
   Address of test_static=0xc0100200
   test_static_const=Testing Static Const Var
   Address of test_static_const=0xc0001ee0
   ```


-- 
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]

Reply via email to