[Home]

Summary:ASTERISK-02302: [patch] Improved ultrasparc support for Asterisk
Reporter:belgarath (belgarath)Labels:
Date Opened:2004-08-31 03:55:52Date Closed:2004-09-25 02:07:32
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Earlier I provided a patch that allows Asterisk to compile successfully on a ultrasparc based system instead of failing to compile as it did before.

This patch should improve performance by several magnitudes on this architecture and provides for the increased instruction set the cpu is capable of instead of simply being a bare bones hack to make it not fail to build; Parts of my early patch do not even take effect under the current system as I simply wanted it to compile first but also have what I required to be in place for this patch.

64 bit v9 support is still not the build default for ultrasparc cpu’s. The problem with ultrasparc is the best compiler stuff is in newer versions of gcc (post 3.0) only. This works for even old (2.96) versions of gcc used in many sparc distributions and provides a small boost either way by upgrading the instruction set used to v8 as well as tuning the timings of the compiled binaries for the ultrasparc chip.

These optimizations do not take effect unless a sparc64 ultrasparc cpu is detected.

****** ADDITIONAL INFORMATION ******

You can get the patch at http://www.hakt.tk/asterisk-sparc.patch

It has been tested and greatly improves the speed of the resulting binary
Comments:By: Mark Spencer (markster) 2004-08-31 09:38:02

Do you have a disclaimer on file?  (see http://bugs.digium.com)

By: belgarath (belgarath) 2004-08-31 12:18:11

No. But I disclaim my work so far including the 3 patches sent in. They are way too small to be copyrightable in my opinion and anyone with the skill could have done the work. It just needs to be added asap so asterisk and friends can compile correctly; The common conception is that if a opensource application will not compile it is broken. I made no changes to the c source. Only the Makefiles.

By: Mark Spencer (markster) 2004-08-31 12:30:01

Fair enough, applied to CVS.