Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 10:31:26 +0100
From:      Dieter <freebsd@sopwith.solgatos.com>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-alpha@freebsd.org
Subject:   Re: firefox3 build fails on alpha 
Message-ID:  <200808181731.RAA05832@sopwith.solgatos.com>
In-Reply-To: Your message of "Mon, 18 Aug 2008 16:35:04 BST." <20080818153504.GA4848@mech-cluster238.men.bris.ac.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
> but I cannot see where PR_BYTES_PER_xxx are defined.

find dir -name \*.h | xargs grep PR_BYTES_PER_

If that doesn't find it, leave out the -name \*.h

> I think on alpha unsigned int should be 32 bit, it that correct?

Should be.  Easily verified:

/* check_sizes.c
 *
 * Verify the size of various types.
 */

#include <stdio.h>

int main(int argc, char **argv)
{
  printf("size of char = %ld\n", sizeof(char) );
  printf("size of short = %ld\n", sizeof(short) );
  printf("size of int = %ld\n", sizeof(int) );
  printf("size of long = %ld\n", sizeof(long) );
  printf("size of long long = %ld\n", sizeof(long long) );
  printf("size of float = %ld\n", sizeof(float) );
  printf("size of double = %ld\n", sizeof(double) );

  return(0);
}

NetBSD/alpha and FreeBSD/amd64 both give:

size of char = 1
size of short = 2
size of int = 4
size of long = 8
size of long long = 8
size of float = 4
size of double = 8

I would be very surprised if FreeBSD/alpha gives anything different.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808181731.RAA05832>