|
|
10 8 8 6 6 4 4 2 2 0
: XL C/C++ on IBM: 10 8 8 6 6 4 4 2 2 0
: Clang++ on Linux: 10 8 8 6 6 4 4 2 2 0
: Intel C++ on Linux: 10 0 8 0 6 0 4 0 2 0
: GNU g++ on IBM: 10 0 8 0 6 0 4 0 2 0
: Sun Studio C++ on Sun: 10 0 8 0 6 0 4 0 2 0
: EkoPath C++ on LInux 10 0 9 0 8 0 7 0 6 0
: Sun Studio C on Sun: 1 0 3 0 5 0 7 0 9 0
: GNU g++ on Linux: 1 0 3 0 5 0 7 0 9 0
: Visual Studio in Debug mode5 5 6 5 7 5 8 5 9 5
: Visual Studio in Release mode1 1 3 3 5 5 7 7 9 9
1979 K&R C on UNIXMost important to me is the fact that on some compilers it almost appears as if the function parameter expressions are evaluated in left-to-right order. Do they actually do this, I thought it was defined as right-to-left? |
I thought it was defined as right-to-left? |
guestgulkan wrote: |
---|
I think the OP is confusing the evaluation order (which is undefined) with the order in which the parameters are placed on the stack. |