Re: A question about stack alignment in C language

2019-04-06 Thread Adam Borowski
On Sat, Apr 06, 2019 at 02:08:17AM +, Mo Zhou wrote: > Hi mentors, Unlike Matthew, I don't consider code questions to be completely off topic. And I hate Stack Overflow. So let's continue to the fun. :) > float sasum64(size_t N, const float *X, size_t incX) > float sasum32(int N

Re: A question about stack alignment in C language

2019-04-05 Thread Matthew Fernandez
> On Apr 5, 2019, at 19:08, Mo Zhou wrote: > > Hi mentors, > > This question tightly associates with my ongoing work for Debian's > BLAS/LAPACK packages, specifically the 32-bit and 64-bit variants. > I encountered a problem that I don't fully understand so I think I > need some help at this p

A question about stack alignment in C language

2019-04-05 Thread Mo Zhou
Hi mentors, This question tightly associates with my ongoing work for Debian's BLAS/LAPACK packages, specifically the 32-bit and 64-bit variants. I encountered a problem that I don't fully understand so I think I need some help at this point. Assume we have the following library "libfoo.c":