For When You Can't Have The Real Thing
[ start | index | login ]
start > Sun > sun4m specifics

sun4m specifics

Created by Administrator. Last edited by Administrator, 14 years and 158 days ago. Viewed 1,790 times. #1
[edit] [rdf]

Building for sun4m systems

So if you are building software on a UltraSPARC, most of the time your compiler will just produce the V8 code needed so that people inflicting your programs on sun4m computers will be happy.

Sometimes, however, your software is smart and wants to use all those fancy V9 instructions that will make life oh-so-much better. This will make users of sun4m systems who want to run your builds unhappy.

For GCC, the trick is to define:


Ah! But if you are building OpenSSL, it is cleverer still, and thinks that the fact that it sees an ulstraSPARC is more relevant than the CFLAGS setting! In this case, you have to:

./Configure <flags> solaris-sparcv8-gcc

This should produce the correct code, and your resulting sshd binaries should be usable on sun4m systems.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt