954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

why calling conventions

So, the question is simple...
in 'C' we have calling conventions in FUNCTIONS. Why? why we cann't(don't) build compilers,libraries to make our own calling conventions like...
func()(lr);-for left to right calling convention.
func()(rl);-for right to left calling convention. :eek:

anupam_smart
Posting Pro
599 posts since Feb 2006
Reputation Points: 15
Solved Threads: 4
 

We can change the calling conventions by prefixing decleration with

__cdecl,__stdcall-for right to left

pascal-for left to right

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 

different calling conentions are needed for mixed languge programs -- mixing C, Pascal, Basic etc in one program.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You