my compiler generates code, rather "respectable" for the moment (to you to judge), however, I have the impression that programs following the following code model are slow, at least at closing time :
include'INCLUDE\win32a.inc' librarymsvcrt, 'msvcrt.dll', \ kernel32, 'kernel32.dll' importkernel32, ExitProcess, 'ExitProcess' importmsvcrt, printf, 'printf' section'.data'datareadablewriteable; data
GVUN0db"Hello, world!" section'.code'codeexecutable; code
movDWORD [ebp-4], edi
movDWORD [ebp-16], esi
Indeed, I have time to launch the program with a double click so that the console remains active a few seconds. Ditto online from order.
What could give this unwanted effect?
Thank you !
_________________ The best way to predict the future is to invent it.
Joined: 24 Aug 2004
Location: Misner space
Well ExitProcess is not part of MSVCRT, it is stdcall so it should use invoke. But that won't matter here since it never returns.
But anyhow, you can do things like log the time stamp counter before and after each API call and print those value just before exiting to see where the main time usage is happening. Or try using a debugger.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum