Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 64 bits
  1997-11-26 10:46 Redhat 5.0 - The *real* questions R J Hill-Cottingham
@ 1997-11-26 10:48 ` David Cabrero Souto
  0 siblings, 0 replies; 4+ messages in thread
From: David Cabrero Souto @ 1997-11-26 10:48 UTC (permalink / raw)


Is there any FAQ, doc, ... on how to write 64 bits clean code ?
TIA

David
-----

-- 
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] 4+ messages in thread

* Re: 64 bits
@ 1997-11-26 12:15 Uncle George
  0 siblings, 0 replies; 4+ messages in thread
From: Uncle George @ 1997-11-26 12:15 UTC (permalink / raw)


i dont think so, everyone seems to have a different notion of what to call
64 bits.
long long
__int64
long
. once u get over, then u gotta do pointers ( are they 32, or 64 long ).
how do u  do arith on them.
how about long to int, or int to long conversion, sign extension, and the
like.

but then again i suppose its not more diff from conversting ur i286 code to
a i386 machine.

David Cabrero Souto wrote:

>         Is there any FAQ, doc, ... on how to write 64 bits clean code ?
> TIA
>
> David
> -----
>
> --
> 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

-- 
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] 4+ messages in thread

* Re: 64 bits
       [not found] <Pine.3.89.9711261123.A9686-0100000@finisterrae>
@ 1997-11-26 12:22 ` Stephen Zedalis
  1997-11-26 16:54 ` Michal Jaegermann
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Zedalis @ 1997-11-26 12:22 UTC (permalink / raw)


On Wed, 26 Nov 1997, David Cabrero Souto wrote:

>
>	Is there any FAQ, doc, ... on how to write 64 bits clean code ?
>TIA

I would say that reading any good text on programming will cover proper
portability issues.  The key is not to make any assumptions about the size
of various variable types and definitely not the size of pointers.  Also
be careful about typecasts, alot of problems with the Alpha misalignment
code seems to be typecasts of for example a pointer into a long integer
which are not the same size on the Alpha.  They tended to be the same
size on 32 bit processors.

-- 
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] 4+ messages in thread

* Re: 64 bits
       [not found] <Pine.3.89.9711261123.A9686-0100000@finisterrae>
  1997-11-26 12:22 ` 64 bits Stephen Zedalis
@ 1997-11-26 16:54 ` Michal Jaegermann
  1 sibling, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-11-26 16:54 UTC (permalink / raw)


> 
> 
> 	Is there any FAQ, doc, ... on how to write 64 bits clean code ?

You just do what C Standard says you are supposed to do instead of
writing "C-like" shortcuts.  That is all.

Using consistently prototypes helps to catch stupid mistake.  The most
popular sin you will see in broken codes is a quiet assumption that
a variable of int type will hold a value of a pointer.

  --mj

-- 
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] 4+ messages in thread

end of thread, other threads:[~1997-11-26 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.3.89.9711261123.A9686-0100000@finisterrae>
1997-11-26 12:22 ` 64 bits Stephen Zedalis
1997-11-26 16:54 ` Michal Jaegermann
1997-11-26 12:15 Uncle George
  -- strict thread matches above, loose matches on Subject: below --
1997-11-26 10:46 Redhat 5.0 - The *real* questions R J Hill-Cottingham
1997-11-26 10:48 ` 64 bits David Cabrero Souto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox