flat assembler
Message board for the users of flat assembler.

Index > Windows > proc procName, arg,arg VS proc procName stdcall, arg,arg

Author
Thread Post new topic Reply to topic
phasmata



Joined: 13 Jan 2014
Posts: 2
phasmata 13 Jan 2014, 19:53
This is my first topic after months of lurking ang learning from this forum,
so Hello world!

I'm reading someone else's FASM code and in almost every case he/she is using:
proc procName, arg,arg
to create a procedure.

However in some cases he/she's using:
proc procName stdcall, arg,arg

Here's my quick question:

What's the use of "stdcall" ?
What difference does it make?
I'm using Olly to compare the generated assembly and I don't seem to
spot any differences between them!
Am I blind? Am I wrong? Smile
Please enlighten me.


Newbie desclaimer: Since my question is about the use of stdcall, Google only taught me (a lot) about calling conventions Smile
Post 13 Jan 2014, 19:53
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 14 Jan 2014, 08:40
phasmata,

proc macro uses stdcall by default, try c to see the difference.
Post 14 Jan 2014, 08:40
View user's profile Send private message Reply with quote
phasmata



Joined: 13 Jan 2014
Posts: 2
phasmata 20 Jan 2014, 01:26
thank you very much,baldr.
Post 20 Jan 2014, 01:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.