discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with gnustep on OpenBSD sparc64


From: David Chisnall
Subject: Re: problem with gnustep on OpenBSD sparc64
Date: Wed, 6 Jul 2011 13:21:55 +0100

On 6 Jul 2011, at 13:13, Sebastian Reitenbach wrote:

> Ivar type: [3[4i]], size: 0


Well, that's obviously wrong, but I can't reproduce it.  We can, at least, work 
from a simpler test case now though:

$ cat test.c
#include <stdio.h>
size_t objc_sizeof_type(const char*);

int main(void)
{
        printf("%d\n",  (int)objc_sizeof_type("[3[4i]]"));
        return 0;
}
$ cc size.c -lobjc && ./a.out 
48

On SPARC64, I think sizeof(int) is 8, so I'd expect this to be 96.  If it 
isn't, we need to work out why.  Can you step through this call and see if it's 
doing anything obviously wrong?

David

-- Sent from my PDP-11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]