Re: D's exact stack convention for D and C/C++

2016-07-17 Thread bitwise via Digitalmars-d
On Sunday, 17 July 2016 at 01:30:31 UTC, Adam Sansier wrote: I am trying to debug some really messed up code that makes no sense. It calls in some code that doesn't seem to be using the standard calling convention. The function definitions are exactly the same in both D and C++.

Re: D's exact stack convention for D and C/C++

2016-07-17 Thread Guillaume Piolat via Digitalmars-d
On Sunday, 17 July 2016 at 01:30:31 UTC, Adam Sansier wrote: Forget all that, What I'm really interested in is the exact calling conventions used in D and C and C++ and what they mean so I can make sure I know whats going on, cause something funky is happening and it's not on my end(I'm not

Re: D's exact stack convention for D and C/C++

2016-07-16 Thread Joakim via Digitalmars-d
On Sunday, 17 July 2016 at 01:30:31 UTC, Adam Sansier wrote: I am trying to debug some really messed up code that makes no sense. It calls in some code that doesn't seem to be using the standard calling convention. The function definitions are exactly the same in both D and C++.

D's exact stack convention for D and C/C++

2016-07-16 Thread Adam Sansier via Digitalmars-d
I am trying to debug some really messed up code that makes no sense. It calls in some code that doesn't seem to be using the standard calling convention. The function definitions are exactly the same in both D and C++. ->func(param1, param2, param3, param4); The call stack setup by C++