Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Kelvin Lunsford <kelvin@qantel.com>
Subject: RE: Compiling 64 bit code
Date: Fri, 13 Jun 1997 12:58:37 -0700	[thread overview]
Message-ID: <3d1cea874f1ecb92f7c47bd15cbc8eb9.axp-list@archive.invalid> (raw)

>Kelvin Lunsford wrote:
>>
> >Does anybody out there know of a C compiler (DEC/GCC/NT) for the
>>Alpha processor which will let you set the default int size to 64
> >bits.  This is for an embedded application, the resulting binaries
> >would not be running under an operating system.
>
>How about:
>
>	% gcc -Dint=long "-Dunsigned=unsigned long"
>
Wouldn't this convert an "unsigned char" to "unsigned long char"?
I assume this has about the same effect as typedef's.

What I'm looking for is a compiler that will use 64 bit integral promotion
when expressions are evaluated.  The Alpha is a native 64 bit machine
and the C language is supposed to have an int size which is optimized
to the target machine so that the most efficient code can be generated.
Unfortunately too much C code has been written which uses 32 bit
int's, so rather that fix the C programs the Alpha compilers were made to 
generate extra code which does all of the conversions and testing to make 
the int's look like they are 32 bits.  I think it is great that a
compatibility mode exists so that older programs can be supported, but
it's not a compatibility mode, IT'S THE ONLY MODE.

Kelvin Lunsford, kelvin@qantel.com
Principal Engineer
Qantel Technologies, Inc.

begin 600 WINMAIL.DAT
M>)\^(B83`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$-@ 0`
M`@````(``@`!!) &`!P!```!````# ````,``# #````"P`/#@`````"`?\/
M`0```$4`````````@2L?I+ZC$!F=;@#=`0]4`@````!A>' M;&ES=$!R961H
M870N8V]M`%--5% `87AP+6QI<W1 <F5D:&%T+F-O;0`````>``(P`0````4`
M``!33510`````!X``S !````% ```&%X<"UL:7-T0')E9&AA="YC;VT``P`5
M# $````#`/X/!@```!X``3 !````%@```"=A>' M;&ES=$!R961H870N8V]M
M)P````(!"S !````&0```%--5% Z05A0+4Q)4U1 4D5$2$%4+D-/30`````#
M```Y``````L`0#H!`````@'V#P$````$`````````Y<R`0B !P`8````25!-
M+DUI8W)O<V]F="!-86EL+DYO=&4`,0@!!( !`!H```!213H@0V]M<&EL:6YG
M(#8T(&)I="!C;V1E`#<(`06 `P`.````S0<&``T`# `Z`"4`!0!7`0$@@ ,`
M#@```,T'!@`-``L`-0`L``4`6 $!"8 !`"$````P-D4X-S4X,$1%13-$,#$Q
M.#E$1# P-C X0S<Y140Y-P`Q!P$#D 8`^ 4``!(````+`",```````,`)@``
M````"P`I```````#`#8``````$ `.0!@FZ<N-'B\`1X`< `!````&@```%)%
M.B!#;VUP:6QI;F<@-C0@8FET(&-O9&4````"`7$``0```!8````!O'@T+J> 
M=>@7X]X1T(G=`&",>>V7```>`!X,`0````4```!33510`````!X`'PP!````
M$@```&ME;'9I;D!Q86YT96PN8V]M`````P`&$$>();\#``<0V0,``!X`"! !
M````90```$M%3%9)3DQ53E-&3U)$5U)/5$4Z1$]%4T%.64)/1%E/55142$52
M14M.3U=/1D%#0T]-4$E,15(H1$5#+T=#0R].5"E&3U)42$5!3%!(05!23T-%
M4U-/4E=(24-(5TE,3$Q%5%D``````@$)$ $```!Z! ``=@0``$<(``!,6D9U
ML.);'O\`"@$/`A4"J 7K`H,`4 +R"0(`8V@*P'-E=#(W!@`&PP*#,@/%`@!P
M<D)Q$>)S=&5M`H,S-P+D!Q,"@S0$1A,S,2#["%4"@'T*@ C/"=D"@ J!@PVQ
M"V!N9S$P,Q10%PL*$K(,`6,-X" ^2RL:/1-0;Q/08P5 96SB=@N ($QU`( "
M$ L@]"!W'((Z"H\:C1N/')1\/B >12&P'P\@'QQG1!9O!Y$`<'D&X&1Y(!,(
M8 5 =&@$D&4@:V1N;P?@;V8E4!90(!D%H&UP`Q $D" H1"!%0R]'0R@`3E3\
M*2 =D282(<<B;PH1*8]1''9!;' 1@" <<6/%!Y!S!;%W:&D1<!W0KP,0`R G
MD 5 >0A@(!&QXRC3#;%A=6P%0 N !4 %`)!Z)F!T;R V- \AWRHO*S\<P6)I
M='/P+B @5"V !" T<2BB.P.1$^!B"8 -L!W 87"C"U MD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0````,`$1 !````0 `',,"R$AXK>+P!0 `(,,"R
<$AXK>+P!'@`]``$````%````4D4Z( ````!FU `'
`
end

--
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

             reply	other threads:[~1997-06-13 19:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-13 19:58 Kelvin Lunsford [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-06-16  4:23 Compiling 64 bit code Jim Paradis
     [not found] <01BC77F9.83016500@pengwin.qantel.com>
1997-06-15 23:48 ` Thomas Pornin
1997-06-14  3:12 Jim Paradis
1997-06-14  2:51 Jim Paradis
     [not found] <9706131527.AA17307@cadosf.hlo.dec.com>
1997-06-13 21:14 ` Ross A. Knepper
     [not found] <33A0AFE4.3973144C@jrp.tiac.net>
1997-06-13  3:54 ` Michal Jaegermann
1997-06-13  2:26 Jim Paradis
1997-06-12 21:06 Kelvin Lunsford
read-only archive

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