Welcome, Guest. Please login or register.

Author Topic: compiling for floating point with vbcc: -lmieee or -lm040?  (Read 2464 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
libm040 should have been in the m68k-amigaos target archive. If it's not in there, drop a message to Frank (PhxAss). Email's probably best.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: compiling for floating point with vbcc: -lmieee or -lm040?
« Reply #1 on: May 14, 2013, 03:13:17 PM »
If I remember correctly, the host environment, i.e. vbcc itself, uses the OS math libraries. If your target math environment is different, keep an eye on precision. Constants and operations generated by the compiler may round differently than bits generated at run time. If you need consistency, test your host environment, and then set the FPU rounding mode appropriatly at program startup.

Edit: You could alternatively build host-specific vbcc executables--one for libs, one for 68881, one for 68040, etc--and then match host to target with e.g. -fpu=foo.
« Last Edit: May 14, 2013, 03:16:18 PM by Trev »