Date: Sun, 13 Nov 2022 12:40:58 +0000 From: Daniel Cervus <DanieltheDeer@outlook.com> To: Paul Procacci <pprocacci@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Question about AMD64 ABI Message-ID: <TYWP286MB2667168BD04FDA3B30DF0435B8029@TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM> In-Reply-To: <CAFbbPuiQHDa6GdmD3BZDfgXJ9_pmQ1g2FYsQ=gvxK12veq%2BSfw@mail.gmail.com> References: <CAFbbPujfaSZ%2BxGsKPL4J-arydLCr7=YGyrBTt18Cg8q16z3Tdg@mail.gmail.com> <TYWP286MB2667FDC5425C52AD3A492052B8029@TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM> <CAFbbPuiQHDa6GdmD3BZDfgXJ9_pmQ1g2FYsQ=gvxK12veq%2BSfw@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
Sorry if I didn’t make myself clear. in other words, I mean if a function prototype requires a parameter less than 64 bits (such as int, short...), since the ABI requires it to be passed by a 64-bit register, will the function completely ignore the unused bits? Can I safely leave the garbage in upper bits? Or I have to expand everything to 64 bits?help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TYWP286MB2667168BD04FDA3B30DF0435B8029>
