flat assembler
Message board for the users of flat assembler.
Index
> Windows > AMD APP linkage in MS COFF |
Author |
|
donn 18 Sep 2017, 04:26
Hi, I've been working with AMD APP in Visual Studio for a while now, mixing in asm objs with vid's COFF mixing style.
Was interested in calling functions such as Code: extrn '__imp_clGetPlatformIDs' as clGetPlatformIDs:qword Code: /SUBSYSTEM:WINDOWS /ENTRY:start I can set the main entry point as a fasm COFF and link with cpp objs, but the AMD APP calls don't seem to execute properly. I can get valid results if I set the main entry point within the cpp objs, then call an asm COFF func that calls clGetPlatformIDs, but I can't switch the entry point completely. Windows API functions still work once switching over, but the AMD APP ones don't. An example call that works only when the cpp files contain the executable entry point: Code: lea r8, [newAPP.numPlatforms] mov rdx, 0 mov rcx, 0 stdcall [clGetPlatformIDs], rcx,rdx,r8 or from the cpp.cpp file directly: Code: cl_int status; cl_uint numPlatforms; status = clGetPlatformIDs(0, NULL, &numPlatforms); As mentioned above, progress has been slow trying to get rid of these cpp files. If anyone has any ideas off the top of their head, would be greatly appreciated. |
|||
18 Sep 2017, 04:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.