How to create a non-standard function definition? #9158
Replies: 3 comments
-
|
From the CodeBrowser, Here, you can import an XML file that you define that contains your new calling convention. Here are some examples: |
Beta Was this translation helpful? Give feedback.
-
Could be 32bit GNU. Have a look at p22 in Agner's calling_conventions.pdf at https://www.agner.org/optimize/#manuals |
Beta Was this translation helpful? Give feedback.
-
|
One thing I would check before adding a new convention: for 32-bit x86, returning So if the only odd part is the x87 return, a normal typed prototype such as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to re a x86 game engine, and it has a ton of classes. Some member functions "return" a float in ST registers, which doesn't correspond to any known calling convention, but it is as it is.
I wasn't able to find any meaningful way to create a function definition to accommodate that behavior and kept relying on comments in the vtable to keep track.
This is very annoying and I'd like to have an ability to strongly type those member functions in the vtables.
If there is a known way - please tell me.
P.s. engine functions reside in a separate dll, so I've made a custom data archive to transfer structs and functions between parts of the project, that is why I want to strongly type those across boundaries.
Beta Was this translation helpful? Give feedback.
All reactions