English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Releases

 
 
Thread Tools
Old 14 October 2014, 18:53   #1
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 48
Posts: 498
calc-2.12.4.13

I've cross-compiled calc and here it is:
Binary (it should probably run on anything >=2.0, lightly tested on emulated A1200)
You'll need ixemul.library. Also, type 'stack 50000' prior to running it from shell, or you'll get crashes.

Source code

I use this to make it.
Code:
make CC=m68k-amigaos-gcc AR=m68k-amigaos-ar BLD_TYPE=calc-static-only RANLIB=m68k-amigaos-ranlib -f Makefile.alkis
Sample run.
Code:
calc-static 
C-style arbitrary precision calculator (version 2.12.4.13)
Calc is open software. For license details type:  help copyright
[Type "exit" to exit, or "help" for help.]

calc-static: Cannot open bindings file "bindings", fancy editing disabled.
; 2^127
        170141183460469231731687303715884105728
; 2^1270
        203279925677039044568852350143829795676079340766927828228888913093820
46991549531832055155159633445673520354714754455093342546027828756767398710755
08921351711508619044802582098783824872980778037201749886825720666252283921317
88056227870361355164809771322897439166233609932390948926333117278637203747869
50784857555121490508830130270381813931558650152443104953490040458438887804107
751424
; pi()
        3.14159265358979323846
; epsilon(1e-50)
        0.00000000000000000001
; pi()
        ~3.14159265358979323846
; display(120)
        20
; pi()
        3.14159265358979323846264338327950288419716939937511
; epsilon(1e-120)
        0.00000000000000000000000000000000000000000000000001
; pi()
        3.1415926535897932384626433832795028841971693993751058209749445923078
16406286208998628034825342117067982148086513282306647
;
Try using help on it, or http://www.isthe.com/chongo/tech/comp/calc/
alkis is offline  
Old 14 October 2014, 20:29   #2
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 40
Posts: 1,923
Any ideas where I can get version 48+ of ixemul.library?
Lonewolf10 is offline  
Old 14 October 2014, 20:35   #3
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 48
Posts: 498
Quote:
Originally Posted by Lonewolf10 View Post
Any ideas where I can get version 48+ of ixemul.library?
Have you tried this one?
alkis is offline  
Old 14 October 2014, 23:06   #4
cla
dev

cla's Avatar
 
Join Date: Aug 2014
Location: Copenhagen
Age: 44
Posts: 65
Send a message via ICQ to cla
Quote:
I've cross-compiled calc and here it is
Cool! I guess experience makes a big difference.

I will definitely study this source carefully
cla is offline  
Old 15 October 2014, 18:11   #5
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 48
Posts: 498
Quote:
Originally Posted by cla View Post
Cool! I guess experience makes a big difference.

I will definitely study this source carefully

I was very lucky with it. The source almost didn't need any modifications. (I just had to rename a variable cause it was conflicting with something in m68k-amigaos-as assembler). Hats off to the original coders for that!

All the 'effort' (if you can call it that) went into making the makefile work.
alkis is offline  
Old 15 October 2014, 21:09   #6
cla
dev

cla's Avatar
 
Join Date: Aug 2014
Location: Copenhagen
Age: 44
Posts: 65
Send a message via ICQ to cla
Quote:
The source almost didn't need any modifications...
I was really surprised how fast you did it. I struggled a lot with the make generated header files before I gave up (Makefiles was never my thing. I never wrote one. I only use them - especially in FreeBSD and OpenBSD).

I also considered to use the library part of Calc (qmath and zmath) but it really seemed like a waste of effort

Back to planning mode
cla is offline  
Old 17 October 2014, 23:28   #7
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 43
Posts: 3,086
I've been thinking about integrating the mapm arbitrary precision library with lua. Both compile fine on my A1200 with SASC6.58, so maybe I can get it to work.
Thorham is offline  
Old 18 October 2014, 17:03   #8
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 43
Posts: 3,086
Well, that proved to be much easier than I thought. Now I have a lua interpreter with integrated arbitrary precision floating point math I'll release it this weekend.
Thorham is offline  
Old 18 October 2014, 17:12   #9
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 48
Posts: 498
Cool
alkis 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
Final Calc wanted AlfaRomeo request.Apps 5 05 November 2016 23:45
Chessboard speed calc? h0ffman Coders. General 4 14 September 2011 09:31

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 09:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06891 seconds with 13 queries