64-bitove binarky (Bolo Re: Mozilla)
Derfinak Jan
derfinak na hron.fei.tuke.sk
Středa Duben 1 12:53:14 CEST 1998
On Wed, 1 Apr 1998, Pavel Machek wrote:
> BTW: Hral jsem si s ultra-30 a kompilator tam jede defaultne
> 32-bitove. Jak vyrobim 64-bitovou hello world aplikaci?
V dokumentacii ku gcc je:
These -m' switches are supported in addition to the above on SPARC
V9 processors in 64 bit environments.
`-mlittle-endian'
Generate code for a processor running in little-endian mode.
`-m32'
`-m64'
Generate code for a 32 bit or 64 bit environment. The 32 bit
environment sets int, long and pointer to 32 bits. The 64 bit
environment sets int to 32 bits and long and pointer to 64 bits.
`-mcmodel=medlow'
Generate code for the Medium/Low code model: the program must be
linked in the low 32 bits of the address space. Pointers are 64
bits. Programs can be statically or dynamically linked.
`-mcmodel=medmid'
Generate code for the Medium/Middle code model: the program must
be linked in the low 44 bits of the address space, the text
segment must be less than 2G bytes, and data segment must be
within 2G of the text segment. Pointers are 64 bits.
`-mcmodel=medany'
Generate code for the Medium/Anywhere code model: the program may
be linked anywhere in the address space, the text segment must be
less than 2G bytes, and data segment must be within 2G of the text
segment. Pointers are 64 bits.
`-mcmodel=embmedany'
Generate code for the Medium/Anywhere code model for embedded
systems: assume a 32 bit text and a 32 bit data segment, both
starting anywhere (determined at link time). Register %g4 points
to the base of the data segment. Pointers still 64 bits.
Programs are statically linked, PIC is not supported.
`-mstack-bias'
`-mno-stack-bias'
With -mstack-bias', GNU CC assumes that the stack pointer, and
frame pointer if present, are offset by -2047 which must be added
back when making stack frame references. Otherwise, assume no
such offset is present.
Ale neskusal som to. :(
jano
----- I can't get no satisfaction -----
Rolling Stones
Další informace o konferenci Linux