¼ÓÈëÊÕ²Ø | ÉèΪÊ×Ò³ | »áÔ±ÖÐÐÄ | ÎÒҪͶ¸å Àî´óͬ £¨https://www.lidatong.com.cn/£©- ¿Æ¼¼¡¢½¨Õ¾¡¢¾­Ñé¡¢ÔÆ¼ÆËã¡¢5G¡¢´óÊý¾Ý,Õ¾³¤Íø!
µ±Ç°Î»Ö㺠Ê×Ò³ > ×ۺϾ۽¹ > ·þÎñÆ÷ > Linux > ÕýÎÄ

Ϊʲôϵͳµ÷ÓÃÊý×ÖÔÚamd64 linux²»Í¬£¿

·¢²¼Ê±¼ä£º2020-12-13 18:23:07 ËùÊôÀ¸Ä¿£ºLinux À´Ô´£ºÍøÂçÕûÀí
µ¼¶Á£ºÎÒ×¢Òâµ½,ÔÚx86 INT $0x80µÄºÍAMD64ϵͳµ÷ÓÃϵͳµ÷Óò»Í¬µÄºÅÂë.ÀýÈç,sys_exitÊÇÔÚx86ºÍÔÚϵͳµ÷ÓÃAMD64 60µÄϵͳµ÷ÓÃ1.ÊÇ·ñÓÐÒ»¸ö(ÀúÊ·µÄ)Ô­Òò²»Í¬µÄϵͳµ÷ÓñàºÅ·½°¸£¿ ½â¾ö·½·¨ ϵͳµ÷ÓýӿÚÓ¦¸Ã·Ç³£Îȶ¨,Ö»ÔÊÐíÌí¼Ó.̸µ½ÏµÍ³µ÷ÓýӿڶÔÓÚÿ¸ö¼Ü¹¹ÊDz»Í¬
ÎÒ×¢Òâµ½,ÔÚx86 INT $0x80µÄºÍAMD64ϵͳµ÷ÓÃϵͳµ÷Óò»Í¬µÄºÅÂë.ÀýÈç,sys_exitÊÇÔÚx86ºÍÔÚϵͳµ÷ÓÃAMD64 60µÄϵͳµ÷ÓÃ1.ÊÇ·ñÓÐÒ»¸ö(ÀúÊ·µÄ)Ô­Òò²»Í¬µÄϵͳµ÷ÓñàºÅ·½°¸£¿

½â¾ö·½·¨

ϵͳµ÷ÓýӿÚÓ¦¸Ã·Ç³£Îȶ¨,Ö»ÔÊÐíÌí¼Ó.̸µ½ÏµÍ³µ÷ÓýӿڶÔÓÚÿ¸ö¼Ü¹¹ÊDz»Í¬µÄÊÂʵ,Linux¼Ò»ï×îÓпÉÄܾö¶¨ÇåÀíһЩÀÛ»ýµÄcruft²¢´ÓÍ·Æô¶¯amd64ϵͳµ÷ÓÃ.

²Î¿¼£ºlinux / Documentation / ABI / stable / syscalls

This interface matches much of the POSIX interface and is based on it
and other Unix based interfaces. It will only be added to over time,
and not have things removed from it.

Note that this interface is different for every architecture that Linux supports. Please see the architecture-specific documentation for details on the syscall numbers that are to be mapped to each syscall.

£¨±à¼­£ºÀî´óͬ£©

¡¾ÉùÃ÷¡¿±¾Õ¾ÄÚÈݾùÀ´×ÔÍøÂ磬ÆäÏà¹ØÑÔÂÛ½ö´ú±í×÷Õ߸öÈ˹۵㣬²»´ú±í±¾Õ¾Á¢³¡¡£ÈôÎÞÒâÇÖ·¸µ½ÄúµÄȨÀû£¬Ç뼰ʱÓëÁªÏµÕ¾³¤É¾³ýÏà¹ØÄÚÈÝ!

    ÍÆ¼öÎÄÕÂ
      ÈȵãÔĶÁ