* Re: General Porting to Alpha Question
@ 1997-03-13 12:22 Uncle George
0 siblings, 0 replies; 3+ messages in thread
From: Uncle George @ 1997-03-13 12:22 UTC (permalink / raw)
Britt Bolen wrote:
The only problems I
> had with the build were of this type:
>
> warning: cast from pointer to integer of different size
>
> Which (if I'm not mistaken) is because of the alpha's 64 bit architecture,
> right? The program dumped core as soon as it ran.
pointers = 64 bits
long = 64 bits
int = 32 bits
short = 16 bits ( but should be avoided. fetches are 32/64 bits )
bytes = 8 bits ( also should be avoided ( if u can ) )
therefore:
int i;
char *p
i = p; /* will loose the upper 32 bits */
You should be carefull of longs, and how they are handled. the & masking
of longs may not get the upper 32 bits ( ie long k & 0xffff still leaves
some 48 bits and not the expected 16 )
hope this helps
--
Uncle George ( aka G. Baeslack )
http://www.voicenet.com/~gatgul
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <Pine.LNX.3.95.970312170303.12902A-100000@bolen-2.student.h>]
* Re: General Porting to Alpha Question
[not found] <Pine.LNX.3.95.970312170303.12902A-100000@bolen-2.student.h>
@ 1997-03-12 23:22 ` Ximenes
0 siblings, 0 replies; 3+ messages in thread
From: Ximenes @ 1997-03-12 23:22 UTC (permalink / raw)
Due to negligence at 05:16 PM 3/12/97 -0500, Britt Bolen let this roam
freely into my Inbox of Terror:
|>warning: cast from pointer to integer of different size
This is covered somewhat in the Alpha-Linux FAQ, available on
www.azstarnet.com/~axplinux/
Xi
--
Ximenes Zalteca ~~~~ { Being right too soon is }
x@dal.net ~~~~~~~~~~~ ( socially unacceptable. }
ximenes@netset.com ~~~~~~~~~~~~ ximenes@null.net
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d- s++:-- a? C++++ UL+>++ P+ L++ E---- W--
N- o? K- w--- O- M-- V-- @PS PE Y+ PGP t++ 5- X+
R*+ tv- b+++ DI++++ D++ G++ e* h++ r++ y++
------END GEEK CODE BLOCK------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* General Porting to Alpha Question
@ 1997-03-12 22:16 Britt Bolen
0 siblings, 0 replies; 3+ messages in thread
From: Britt Bolen @ 1997-03-12 22:16 UTC (permalink / raw)
I thought i'd try my hand at porting SPIM (a MIPS R2000) emulator to the
alpha and it built fine, but I had a feeling the 64 bit problem with 32
bit code would rear it's ugly head. This is my first attempt at porting
to the alpha, so where do i begin with this project? The only problems I
had with the build were of this type:
warning: cast from pointer to integer of different size
Which (if I'm not mistaken) is because of the alpha's 64 bit architecture,
right? The program dumped core as soon as it ran.
Thanks
Britt
--------------------
Britt Bolen <bolen@fas.harvard.edu>
http://bolen-2.student.harvard.edu/~bolen/
"We cross our bridges when we come to them and burn them behind us, with
nothing to show for our progress except a memory of the smell of smoke,
and a presumption that once our eyes watered."
-Guildenstern
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-03-13 12:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-13 12:22 General Porting to Alpha Question Uncle George
[not found] <Pine.LNX.3.95.970312170303.12902A-100000@bolen-2.student.h>
1997-03-12 23:22 ` Ximenes
-- strict thread matches above, loose matches on Subject: below --
1997-03-12 22:16 Britt Bolen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox