在 2025-5-23 23:03, Joel Sherrill via Gcc 写道:
Hi

In the SPARC port of RTEMS, there is a global variable assigned to a
register for performance reasons. This is the near decade old line of code:

register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__( "g6" );

+1 for this.

On ARM64, Windows uses X18 as a pointer to thread-specific data. We have this declaration which we can't get rid of:

   register struct _TEB *__mingw_current_teb __asm__("x18");





--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to