Originally Posted by anhvuitinh
I am trying to compile a hello world program to run on a powerpc processor. I used GCC 4.4.1 from Ubuntu 9.10 on a X86 (PC) platform.
> gcc -g -Wall -mtune=powerpc ./hello.c
./hello.c:1: error: bad value (powerpc) for -mtune= switch
Which value should I use to indicate powerpc architecture? Thanks.
And what does 'gcc' documentation say ? Just look in it for 'mtune'.
And why do you need '-mtune' for such a simple program ? The command line switch is used in order to obtain maximum performance.