This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ultrasparc3 optimisation


On 11/16/05, Jason.Beech-Brandt@ed.ac.uk <Jason.Beech-Brandt@ed.ac.uk> wrote:
> Hi,
>
> I'm using gcc-4.0.1 on both a UltraSparc3 and UltraSparc3cu systems.  When
> I compile code on the UltraSparc3 system using -mcpu=ultrasparc3 and run
> the file command on the executable I get
>
> hello:          ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+
> Required, UltraSPARC1 Extensions Required, dynamically linked, not
> stripped

First, this question is more suited to gcc-help mailinglist.  Second, the switch
you want to use is -march=ultrasparc3 which changes the used instruction-set.
-mcpu only tunes for ultrasparc3 without using instructions that are
not available
for the default cpu used.

Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]