linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Best compiler/flags combination
@ 2000-01-28 20:06 Pavel Roskin
  2000-01-30 23:21 ` Graham Stoney
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2000-01-28 20:06 UTC (permalink / raw)
  To: linuxppc-embedded


Hello!

I'm compiling stuff for RPX/Lite on a PowerMac running LinuxPPC. It turns
out that programs compiled with -O2 work correctly on PowerMac but not on
RPX. For example, libcrypt.a compiled with -O2 and linked with tinylogin
crashes when it's run on RPX.

However, if I use -Os, all programs work correctly. The only exception was
ld.so that I had to recompile without optimization.

I'm using egcs-1.1.2 and glibc-2.1.1 with patches from LinuxPPC (i.e. I
use their source RPM's).

The question is, what compiler is known to produce good code for embedded
PPC boards and what flags should be used? It is desireable that the
binaries still run on PowerPC.

Pavel Roskin


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-01-31 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-28 20:06 Best compiler/flags combination Pavel Roskin
2000-01-30 23:21 ` Graham Stoney
2000-01-31  4:55   ` Pavel Roskin
2000-01-31 12:58     ` Marcus Sundberg
2000-01-31 23:10     ` Peter Allworth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).