crafcat7 commented on PR #14605:
URL: https://github.com/apache/nuttx/pull/14605#issuecomment-2453010343

   But there is an interesting point here.
   When we use make to compile, these atomic-related functions use the 
functions provided by toolchain.
   Similarly, I look at the files generated by cmake compilation in the 
disassembly (for example: fs_inodefind.c, which calls the atomic function)
   <img width="1174" alt="image" 
src="https://github.com/user-attachments/assets/34584a26-88b8-4c3c-8858-d6a6229f3fc9";>
   It also points to the atomic of toolchain. But in the end, It can't find 
functions such as __atomic_fetch_add_2 (which seems to be related to 
arch_atomic.c).
   Finally, I disassembled nuttx generated by cmake, and it seemed to be linked 
correctly (toolchain implementation)
   <img width="839" alt="image" 
src="https://github.com/user-attachments/assets/fa753d9e-3a44-4acb-b7b2-8e52a1f7cf2b";>
   


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