簡體   English   中英

什么是32位Linux和64位Linux(英特爾台式機CPU)上的默認C調用約定?

[英]What is default C calling convention on 32 bit Linux and 64 bit Linux (Intel desktop CPU)?

什么是靜態函數的默認調用約定說:

static void PrintHelloWorld(char* s) { }

Linux的:

#36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Linux ubuntu 3.2.0-23-generic

在您列出的體系結構和編譯器(Linux x86_64)下,使用System V AMD64 ABI中描述的調用約定。

在Linux i386下,使用System V i386 ABI中描述的調用約定。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM