🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #29

cross compiling produces worse code

#29
From: John Romein
Date: Tue, 03 Nov 1992 18:58
11 lines
986 bytes
I succesfully configured and build gcc 2.3.1 as cross compiler, running on
a sun4, producing code for a sun3.  I also build the compiler to run on a
sun3 and to produce code for a sun3.
However, a program compiled with the cross compiler runs almost twice as slow
as the program compiled with the non-cross compiler (on a sun3)
Both compilers were told to optimize with the -O2 flag.
Both compilers produced hardware floating point instructions.
Is it possible that -O2 does less optimizations on the cross compiler than on
the non-cross compiler ?

John
Technical Details
Message-ID: <Bx5M21.899@cs.vu.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!star.cs.vu.nl!jwromei

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!star.cs.vu.nl!jwromei
From: jwromei@cs.vu.nl (John Romein)
Subject: cross compiling produces worse code
Message-ID: <Bx5M21.899@cs.vu.nl>
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Tue, 3 Nov 1992 18:58:49 GMT
Lines: 11