English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 23 March 2016, 21:40   #1
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
vbcc V0.9e released

I hope I didn't forget too much. These releases are becoming way too complicated...

http://sun.hasenbraten.de/vbcc/

Changes since last release:
  • New options -deps and -deps-for-libs to output dependencies for a Makefile.
  • Print whole include-stack when encountering an error in include files.
  • Fixed undefined symbols in DWARF output by avoiding debug information for removed static variables.
  • Do not consider floats as induction variables. Fixes -O3 optimized loops with float variables.
  • Fixed bug with nested designated initalizers in unions.
  • Updated Warp3D headers and link libraries to V4.2a.
  • Make sure kick13 config file is included for m68k-amigaos (Kickstart 1.x compatibility).
  • m68k: Fixed asm-peephole optimization of move.l dx,ay; move.l ay,dx when cc of ay is used.
  • vclib: Improve C99 compatibility in m881, m040 and m040 libraries with Inf and NaN values.
  • vclib: 6888x, 68040 and 68060 math libraries for Atari.
  • vclib: C99 inttypes.h, strtoimax(), strtoumax(), imaxabs(), imaxdiv(), isblank().
  • vclib: Fixed sign of remainder in div(), ldiv(), lldiv().
  • vclib: sscanf() erroneously included the string terminator.
  • vclib: Fixed float operations with m13.lib (Kickstart 1.x mathffp).
  • vclib: setjmp/longjmp() also save/restore FPU registers.
  • vclib: minstart.o fixes for OS4 and MorphOS (small data and WB start).
  • amigalib: Fixed rtEZRequest() and rtEZRequestTags()
phx is offline  
Old 23 March 2016, 22:17   #2
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Thanks for your work on this.
Kamelito
kamelito is offline  
Old 24 March 2016, 10:31   #3
majikeyric
Registered User
 
majikeyric's Avatar
 
Join Date: Oct 2015
Location: France
Posts: 82
Great! Thanks!!!
majikeyric is offline  
Old 24 March 2016, 12:23   #4
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
Cool !!
But those W3D headers aren't 4.2a (there's no V4 stuff : Drawarrays, DrawElements , etc )
Cowcat is offline  
Old 24 March 2016, 14:04   #5
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Hmm... you're right. I was afraid that I forget something. Will check for the reason this evening (bad FD oder header file passd into fd2pragma?).
phx is offline  
Old 24 March 2016, 15:20   #6
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
There are warp3d_protos already done on my Q2 sources for minigl (just in case).

Just found that in order to use ppcmath.lib, "-mrel" is needed for vlink ( on config warpos_warpos ).
Cowcat is offline  
Old 24 March 2016, 20:11   #7
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by phx View Post
Hmm... you're right. I was afraid that I forget something. Will check for the reason this evening (bad FD oder header file passd into fd2pragma?).
The Warp3D SDK has Warp3D.fd (and Warp3DPPC.fd) but this should be Warp3D_lib.fd using standard .fd naming. My FD: directory has Warp3D.fd and Warp3D_lib.fd but both of mine are the new versions. Perhaps the problem is related to this unusual naming?
matthey is offline  
Old 24 March 2016, 21:02   #8
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Ok, found the problem. My clib/Warp3D_protos.h was too old. The FD-files were ok.

Did a "silent update" for the m68k-amigaos and ppc-warpos targets.
phx is offline  
Old 24 March 2016, 21:15   #9
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by Cowcat View Post
Just found that in order to use ppcmath.lib, "-mrel" is needed for vlink ( on config warpos_warpos ).
Oh, indeed. Unfortunately I don't have the sources for ppcmath.lib, and it was built with StormC, so the section names differ and the new vlink no longer automatically merges them.

Might be a good idea to add -mrel to the warpos config. Will update that too.
phx is offline  
Old 24 March 2016, 21:40   #10
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
The whole ppcmath.lib source is located in RayStorm rendering package, made open source a couple of years ago. Some work with macros & stuff is needed to recompile for a clean vbcc lib. Just to inform, not to demand a new one from Phx
Cowcat is offline  
Old 25 March 2016, 15:26   #11
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by Cowcat View Post
The whole ppcmath.lib source is located in RayStorm rendering package, made open source a couple of years ago.
I found the source on GitHub, but unfortunately it is not the final version. Parts of the lib_ppcmath source cannot work. For example, look at the "RELOC:" in log_asm.pasm, or the missing initialization of r3 with log_table_base in pow_asm.pasm.

Seems it would be better to do that from scratch.
phx is offline  
Old 25 March 2016, 15:44   #12
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
Quote:
"RELOC:"
Missed that !
And wtf is ?? Maybe some Sherlock work on the disassembly could show where it points: Did that some time ago and most of the original library is similar to the sources. Dunno now.
Cowcat is offline  
Old 25 March 2016, 23:25   #13
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Thanks a lot!
Leffmann is offline  
Old 26 March 2016, 01:53   #14
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Thanks! Downloading to my Amiga/MorphOS setups!
tolkien is offline  
Old 28 March 2016, 16:04   #15
ReadOnlyCat
Code Kitten
 
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
Thanks for your work, phx!
ReadOnlyCat is offline  
Old 31 October 2016, 18:47   #16
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
Looking at the source of ppcmath.lib inside Raystorm I think there are a couple of things mixed-up. pow.c and pow_asm.pasm are actually equivalent to exp_asm.pasm (the latter has the correct log_table_base reference).

same for log_asm.pasm. That one is also in exp_asm.pasm.

I think you only need
acos.c
atan_asm.pasm
exp_asm.pasm
sqrt_asm.pasm
trig_asm.pasm

(also the only ones referenced in the StormC build files).
Hedeon is offline  
Old 31 October 2016, 19:03   #17
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
Oh and it seems to be disassembled by wosira. So I guess you have to adjust the source to make it compile with vasm
Hedeon is offline  
Old 31 October 2016, 21:18   #18
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
I compiled bltzquake without ppcmath.lib and I don't see a difference speed-wise with the one compiled by CowCat (which I presume is linked to ppcmath).

edit: nevermind. Used the wrong executables. Not usre if ppcmath is faster or equally fast as m.

Last edited by Hedeon; 31 October 2016 at 22:07.
Hedeon is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
vbcc 0.9d phx News 43 13 July 2015 19:41
From gcc to vbcc. Cowcat Coders. General 9 06 June 2014 14:45
vbcc: no startup aragon Coders. C/C++ 2 16 February 2014 14:52
VBCC 0.8j for Windows hitchhikr Coders. General 11 09 October 2008 00:58
Compiler: vbcc 0.8g patch 2 released Paul News 0 29 November 2004 15:41

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:11.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09211 seconds with 15 queries