sparc optflags

Tomasz Mateja tommat at pimpek.one.pl
Sun Mar 16 19:09:48 CET 2008


Tomasz Mateja napisał(a):
> Tomasz Mateja pisze:
>   
>> Andrzej Krzysztofowicz pisze:
>>     
>>> To by trzeba zmienic arch na sparc64 dla tego pakietu.
>>>       
>> no wlasnie nie wiem, -m32 -mcpu=v9 powinno generowac 32bitowy kod
>>     
>
> [builder at moon src]$ gcc -m32 -mcpu=v9 test.c -o test
> [builder at moon src]$ file test
> test: ELF 32-bit MSB executable, SPARC32PLUS, V8+ Required, version 1 
> (SYSV), for GNU/Linux 2.6.12, dynamically linked (uses shared libs), not 
> stripped
> [builder at moon src]$ ./test
> Hello world
> [builder at moon src]$ uname -m
> sparc
kilka testów więcej:
[builder at moon src]$ gcc -m32 -mcpu=v9 test.c -o test
[builder at moon src]$ ./test
char    1
short   2
int     4
long    4
__arch64__ not detected
[builder at moon src]$ gcc -m32 -mcpu=v7 test.c -o test
[builder at moon src]$ ./test
char    1
short   2
int     4
long    4
__arch64__ not detected

-- 
T.



More information about the pld-devel-pl mailing list