Re: New calling convention gotham_call

2024-09-23 Thread Frederick Virchanza Gotham via Gcc
On Tue, Aug 20, 2024 at 9:38 AM LIU Hao wrote: > > 2024-08-20 16:13, Frederick Virchanza Gotham: > > > > I want to write a new calling convention into the GNU g++ compiler, > > specifically for the x86_64 instruction set. > > The x64 calling convention is much more complex than x86. Each of the fi

Re: New calling convention gotham_call

2024-08-20 Thread LIU Hao via Gcc
在 2024-08-20 16:13, Frederick Virchanza Gotham via Gcc 写道: I want to write a new calling convention into the GNU g++ compiler, specifically for the x86_64 instruction set. The x64 calling convention is much more complex than x86. Each of the first four parameter is not only assigned an integer

New calling convention gotham_call

2024-08-20 Thread Frederick Virchanza Gotham via Gcc
I want to write a new calling convention into the GNU g++ compiler, specifically for the x86_64 instruction set. On MS-Windows, the x64 calling convention puts the first argument in RCX, and puts the return value in RAX. I wish to write a new calling convention which uses RAX for both the first ar