EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mv162LC problem with floating point libraries in 5.1.1
From: Johnny Tang <[email protected]>
To: [email protected] (Marty Kraimer)
Cc: [email protected]
Date: Thu, 22 Aug 96 16:47:39 EDT
===========================================
This mail is made of the recycled electrons
===========================================
Mailer: Elm [revision: 70.85]

Gabor wrote:
> I'm working on dbStaticLib.c modification and this is 
> now working on PC (!) (R3.13.alphaX) and R3.12.2.D but only 
> on processors which has FP. I have discussed with Matthias,
> and he told me, that the hack we have on LC board startup scripts:
> --
> # hack gnu fp-soft library error
> ___fixunssfsi = 0x800000
> --
>  
> is not enought - he has red something from you. Could you help me ?
> Regards, 
> 
> Gabor

To compile EPICS or vxWorks applications to be run on 68LC040 or
68EC040 (mv162 without hardware floating support), -msoft-float
flag must be used with cc68k cross compiler and that flag must
come AFTER "-m68040" on the cc68k command line.

If you are using 5.1.1 or earlier version of vxWorks mv162lc BSP,
you do need fix libMC68040gnuvx.a library. The hack gnu fp-soft
library with " ___fixunssfsi = 0x800000 " is only hoping that
there will be no actually calls to ___fixunssfsi in your
vxWorks applications or EPICS in your case.

I recommend you to use vxWorks 5.2 or 5.3 vxWorks. If for some reasons
you really want to use 5.1.1 and try to fix gnu soft-fp library,
you may use the following procedure as a reference:

Delete the following modules in libMC68040gnuvx.a :
gccUss040Alib pow fmod support log__L exp__E

Extract the following modules in libMC68020gnuvx.a and add
them into libMC68040gnuvx.a:
floatLib shell shellLib gccMathLib mathSoftALib
gccUssALib uss_dpfncs uss_dpopns uss_fpfncs uss_fpopns
uss_xlfncs modf frexp ldexp

ar68k -d libMC68040gnuvx.a <del-module>
ar68k -x libMC68020gnuvx.a <extract-module>
ar68k -r libMC68040gnuvx.a <add-module>

Hope it helps,

Johnny Tang

--
=============================================================
Johnny Tang     Voice: (804)249-7239  E-Mail: [email protected]
Jefferson Lab
Continuous Electron Beam Accelerator Facility
12000 Jefferson Avenue, MS 85A
Newport News, Virginia 23606
=============================================================


Navigate by Date:
Prev: Re: rec/devSup advise needed Marty Kraimer
Next: Re: rec/devSup advise needed John R. Winans
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: R3.13 App Devl Guide Janet B. Anderson
Next: Seeing forward links from SNL? swampler
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·