You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I found this bug while spending an afternoon going down the rabbit hole of header inclusion in krml. Following my most recent changes, callconv.h should only be used from within Vale.h, possibly by passing -add-include 'Vale.h:"krml/internal/callconv.h"' to krml
I haven't seen any issue with calling conventions on Windows. The .asm work fine with msvc and the .S with clang-cl. I didn't check the assembly though.
ok, because the Vale assembly code definitely expects stdcall, so I'm just curious how this is even working out -- the default is cdecl I think on Windows... isn't there some issue related to stack cleanup?
Describe the bug
The source contains numerous precise C calling-convention annotations:
but it seems like krml does nothing with them: there are no keywords
stdcall
ininternal/Vale.h
Expected behavior
krml should probably emit stdcall
@franziskuskiefer do you know if this is a problem on Windows? I'm not sure how it worked so far... is stdcall the default convention?
The text was updated successfully, but these errors were encountered: