digitalmars.D.learn - How to implement fastcall ?
- =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KTQsNC0?= =?UTF-8?B?0LXQtdCy?= (3/3) Sep 21 2020 How to implement fastcall ?
- =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KTQsNC0?= =?UTF-8?B?0LXQtdCy?= (7/10) Sep 21 2020 On Monday, 21 September 2020 at 11:14:06 UTC, Виталий ФадееÐ...
- Mike Parker (6/9) Sep 21 2020 The supported linkage attributes are here:
- Denis Feklushkin (4/7) Sep 23 2020 Hypothesis: it is possible what LLVM + Link Time Optimization
- kinke (6/13) Sep 23 2020 ~All modern ABIs use registers; __fastcall was one of the special
How to implement fastcall ? ( stdcall is calling convention for pass function arguments via registers )
Sep 21 2020
On Monday, 21 September 2020 at 11:14:06 UTC, Виталий Фадеев wrote:How to implement fastcall ? ( stdcall is calling convention for pass function arguments via registers )On Monday, 21 September 2020 at 11:14:06 UTC, Виталий Фадеев wrote: fix... ( fastcall is calling convention for pass function arguments via registers )
Sep 21 2020
On Monday, 21 September 2020 at 11:14:06 UTC, Виталий Фадеев wrote:How to implement fastcall ? ( stdcall is calling convention for pass function arguments via registers )The supported linkage attributes are here: https://dlang.org/spec/attribute.html#linkage `extern(Windows)` is stdcall, `extern(C)` is cdecl. Unless it's a hidden feature that I'm unaware of, fastcall is not supported.
Sep 21 2020
On Monday, 21 September 2020 at 11:14:06 UTC, Виталий Фадеев wrote:How to implement fastcall ? ( stdcall is calling convention for pass function arguments via registers )Hypothesis: it is possible what LLVM + Link Time Optimization does by this way.
Sep 23 2020
On Wednesday, 23 September 2020 at 19:50:13 UTC, Denis Feklushkin wrote:On Monday, 21 September 2020 at 11:14:06 UTC, Виталий Фадеев wrote:~All modern ABIs use registers; __fastcall was one of the special 32-bit x86 ABIs AFAIK (using up to 2 GP registers) and isn't supported directly. The D ABI for 32-bit x86 uses one GP register (and is somewhat similar to __thiscall for member functions).How to implement fastcall ? ( stdcall is calling convention for pass function arguments via registers )Hypothesis: it is possible what LLVM + Link Time Optimization does by this way.
Sep 23 2020