Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2007 12:09:32 -0500
From:      Nathan Whitehorn <nathanw@uchicago.edu>
To:        Michael Reifenberger <mike@Reifenberger.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 64bit integer problem?
Message-ID:  <46F0064C.3080702@uchicago.edu>
In-Reply-To: <20070918182508.V24397@fw.reifenberger.com>
References:  <20070918182508.V24397@fw.reifenberger.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get 
configured to produce big-endian code by default.
-Nathan

Michael Reifenberger wrote:
> Hi,
> 
> on my AVILA-arm board I'm unable to compile lang/perl
> 
> On of the problems seems to be related to long long handling:
> 
> The following program:
> ##############################
> #include <sys/types.h>
> #include <stdio.h>
> int main() {
>   long long q = 12345678901LL;
>   printf("%lld\n", q);
> }
> ##############################
> 
> gives the output:
> -2315945094416433150
> 
> Is there a endian issue?
> 
> Bye/2
> ---
> Michael Reifenberger
> Michael@Reifenberger.com
> http://www.Reifenberger.com
> 
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"




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