Computing.Net > Forums > Programming > Wanna know pascal and C stack order

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Wanna know pascal and C stack order

Reply to Message Icon

Name: Reddy
Date: August 17, 2004 at 02:51:41 Pacific
OS: Windows 2000
CPU/Ram: p4 2.8ghz
Comment:

hi everyone,

i'm bit confused with stack pushing in pascal and C.

i herd that in C stack pushing is from right to left, and in pascal left to right, why it is so, pls let me know if anybody knows the reason behind this.

thanks in advance
REddy



Sponsored Link
Ads by Google

Response Number 1
Name: BlueRaja
Date: August 17, 2004 at 04:38:46 Pacific
Reply:

Because that's how the original programmers wanted it?...

I dunno about PASCAL, but you can declare a function as WINAPI in C (which is a #define as something, although I don't remember what) to push from left to right.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Wanna know pascal and C stack order

visual basic and C# www.computing.net/answers/programming/visual-basic-and-c/1113.html

C++ stack program www.computing.net/answers/programming/c-stack-program/8589.html

more c and c++ performance question www.computing.net/answers/programming/more-c-and-c-performance-question/6524.html