flat assembler
Message board for the users of flat assembler.

Index > Windows > Win32 calls. Register usage?

Goto page Previous  1, 2, 3 ... 9, 10, 11
Author
Thread Post new topic Reply to topic
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 14 Jun 2009, 14:33
arigity wrote:
16 bit code still works even on 64 bit os's
Not on x86-64 Smile

I find it comical that you keep going on as if cdecl was the great plague or whatever - it has already been pointed out that the stack adjustment can be accumulated, resulting in smaller code than stdcall. And as bitrake points out, if you're not writing in a HLL you can do some nice stack re-usage tricks (never attempt this when interfacing with external code, though).

And really, just how much of a performance problem is this in the real world? I thiiiink there's more important things to spend your time on Smile
Post 14 Jun 2009, 14:33
View user's profile Send private message Visit poster's website Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu 14 Jun 2009, 14:38
Borsuc wrote:

cdecl is useful, but only for functions inside your program that are hard-coded to bring out the most out of it, and that is, dynamic stack manipulation (this also requires assembly mind you). NOT for a STANDARD API that all apps can use from.
If you're going to hand-optimize in assembly you can probably do better than any standard (including cdecl), so that's a moot point. Razz


Last edited by Azu on 16 Aug 2009, 04:07; edited 1 time in total
Post 14 Jun 2009, 14:38
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 15 Jun 2009, 01:42
f0dder wrote:
And really, just how much of a performance problem is this in the real world? I thiiiink there's more important things to spend your time on Smile
That's not the point. A wrong approach and poor "standard" is important to get right. No wonder things and standards (not calling conventions mind you) are so complicated these days, because everyone thinks "meh, this isn't really significant change, just a small one" but when you've got different people it will result in junk and the incompatibilities and all the problems we face today with so many incompatible devices/drivers/whatever. Sad

_________________
Previously known as The_Grey_Beast
Post 15 Jun 2009, 01:42
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 9, 10, 11

< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.