LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2015, 07:00 PM   #1
derive
Member
 
Registered: Apr 2014
Distribution: debian
Posts: 42

Rep: Reputation: Disabled
Floatin point or fixed point in packaged binaries?


If I use
apache/nginx, cgi/php, etc..
samba, postfix/exim/sendmail...

on debian linux

I use floating point or fixed point in these softwares?

I mean in the above "standard" programs ( not in the php scripts or in any other user programs ).

Debian's packages are still 386 compatibles. Is this decided by the gcc (or other compiler) when the package maintainer compiles the program?
Is it an architectural question? Will the program works differently for example on a sparc and on an 64bit xeon? Or the program's source determines the usage of the FPU?

Is there a debugger/audit subsystem/source analyser to get the fpu usage of a program?
 
Old 07-20-2015, 01:31 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Debugger: http://www.drdobbs.com/testing/13-li...ewed/240156817

You can also analyze the source code of these programs. (filetype float). Just download these packages from the appropriate pages (http://httpd.apache.org/ , https://www.samba.org/ , ...)

And the FPU does not always use floating point.

Try to install Gentoo and activate FPU.

Last edited by Keruskerfuerst; 07-20-2015 at 07:24 AM.
 
Old 07-20-2015, 07:34 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,881
Blog Entries: 4

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
Huh?

All implementations of the 386 architecture today include a built-in FPU which is used for all floating-point operations. The CPU also has a decimal mode. If it is a 32-bit program, the CPU will operate in 32-bit compatibility mode if it is a 64-bit unit.

Last edited by sundialsvcs; 07-20-2015 at 07:35 AM.
 
Old 07-20-2015, 08:54 AM   #4
derive
Member
 
Registered: Apr 2014
Distribution: debian
Posts: 42

Original Poster
Rep: Reputation: Disabled
yes, "386 architecture" or x86 has builtin fpu nowadays, but what about sparc T1 many cores, but only one fpu, or my dns 313 nas ( Processor : FA526id(wb) rev 1 (v4l) ).
Gcc has some fpu emulation like thing as I can see, and the kernel itself has math emulation.
And as I remember, the "i387" external coprocessor was the hardware fpu unit, not the "386", so if debian ships "386 compatible" binaries it should mean in this context that there are floating point instructions in the code, and it relies on the kernel with fpu emulation?

If the system doesn't have an fpu that is clear. I think the interesting part is for example the T1, 8 cores, 32 threads, but only one fpu. Maybe a threaded emulation in the kernel, or a "workaround" by gcc - as for no fpu arm platforms performs better?

Anyway I will check the sources of the packages ( not the original ones, since debian is not always using the vanilla softwares, and now I focuses on that distribution ).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Implement Low Speed Point-to-Point Data Link via Linux networking? Paul_N Linux - Networking 2 06-30-2013 03:47 PM
How to write a fixed point function? geewhan Programming 2 06-21-2012 06:04 PM
need a fixed point media player linux=future Linux - Software 1 03-05-2006 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration