(no title)
vrotaru | 1 year ago
fn f1 (x, y) #-> // Use C calling conventions
fn f2 (x, y) -> // use fast calling conventions
The first one was mostly for interacting with C code, and the compiler knew how to
call each function.vrotaru | 1 year ago
fn f1 (x, y) #-> // Use C calling conventions
fn f2 (x, y) -> // use fast calling conventions
The first one was mostly for interacting with C code, and the compiler knew how to
call each function.
magicalhippo|1 year ago
When you declare a procedure or function, you can specify a calling convention using one of the directives register, pascal, cdecl, stdcall, safecall, and winapi.
As in your example, cdecl is for calling C code, while stdcall/winapi on Windows for calling Windows APIs.
[1]: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Procedur...
pjmlp|1 year ago
JonChesterfield|1 year ago
IshKebab|1 year ago
dgellow|1 year ago
vrotaru|1 year ago
Debugger writers may not be happy, but maybe lldb supports all conventions supported by llvm.