English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 12 March 2016, 19:20   #1
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
opt. AMOS Pro Compiler Settings?

Hi folks,

i was wondering what might be the best optimal compiler settings for AMOS Pro. I'm asking because i made once an executable with merely 220kB in size, but yesterday it became a whopping 650kB. Also, the source is swollen up a lot. What is causing this? I am using WinUAE, so there is no speed issue while compiling.
Cylon is offline  
Old 12 March 2016, 21:40   #2
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
Are any bank files integrated into the source code?
Samurai_Crow is offline  
Old 12 March 2016, 21:54   #3
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
Quote:
Originally Posted by Samurai_Crow View Post
Are any bank files integrated into the source code?
i don't know!
Will check. I have edited the source a couple dozen times, done some runtime testing and so on. I never included new material, let alone data.
Cylon is offline  
Old 21 March 2016, 19:45   #4
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Did you accidentally include help/error messages in the larger executable?

Did you solve your problem?

It is possible to save compiler settings so that you don't need to keep changing (or remembering them) all the time.
Lonewolf10 is offline  
Old 24 March 2016, 13:16   #5
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
The Problem is: Not always did the source compile. Strange errors or the program wont run. So i have to fiddle around with all the options, that's why it is different all the time.
Will have a look at it tonight, i hope.
Cylon is offline  
Old 24 March 2016, 17:11   #6
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
You shouldn't have to fiddle with the settings to get it to compile, unless you want specific features added/removed.

Any chance you could list the errors you get?

I know that AMOS doesn't like lot's of DATA statements - which is why the use of banks is recommended.

Also, are you sure that the compiler is using the same extensions as the editor?

Last edited by Lonewolf10; 24 March 2016 at 17:14. Reason: accidentally submitted before finished typing!
Lonewolf10 is offline  
Old 03 April 2016, 00:32   #7
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
Solved.

below some pics.

The source accumulated lots of data banks during testing - i have no idea why.
The source growed from 160kB to 600 kB.

So i checked with "list bank" what was in there and removed everything with "erase all". I saved the gfx and sound banks first - just to be sure.

Then i compiled again - and it still worked!

Also there was a stupid "out of memory" during my latest tests. The reason was the "SQUEEZE" option in the compiler. Normally this should crunch the executable but now i know it is better not to use it.
Attached Thumbnails
Click image for larger version

Name:	sr_038.JPG
Views:	299
Size:	62.0 KB
ID:	48071   Click image for larger version

Name:	sr_039.JPG
Views:	276
Size:	23.7 KB
ID:	48072   Click image for larger version

Name:	sr_040.JPG
Views:	291
Size:	50.7 KB
ID:	48073  

Last edited by Cylon; 03 April 2016 at 12:12.
Cylon is offline  
Old 03 April 2016, 11:33   #8
Etze
A3000-Fan
 
Etze's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 321
Quote:
Originally Posted by Cylon View Post
The reason was the "SQUEEZE" option in the compiler. Normally this should crunch the executable but now i know it is better not to use it.
Never worked for me, too. Maybe it only works on a standard-68k-CPU?
Etze is offline  
Old 03 April 2016, 20:04   #9
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
I have never used the SQUEEZE option - I also believe it is known to be buggy (as you have proven).
Lonewolf10 is offline  
Old 03 April 2016, 23:08   #10
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
Quote:
Originally Posted by Lonewolf10 View Post
I have never used the SQUEEZE option - I also believe it is known to be buggy (as you have proven).

But when your executable appears to be 650k in size you might think "hell, i'll give it a try!"
Cylon is offline  
Old 04 April 2016, 22:29   #11
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by Cylon View Post
But when your executable appears to be 650k in size you might think "hell, i'll give it a try!"
True...

There are some good compressors out there from demo coders that are freely available.

Personally, I use Shrinkler 4.3 (by Blueberry over on the Amiga Demoscene Archive forum) to compress my assembler programs. There is no reason why it shouldn't work with AMOS compiled programs and the compressed output will auto-decrunch when run
Also, the Shrinkler.zip archive has programs that crunch on multiple formats (Linux, Windows 32/64bit and Amiga), but they all produce Amiga only compatible files. What more can you ask for?
(Obviously compressing files is fastest under Windows/Linux (a few seconds) compared to Amiga (several minutes), but decompressing speed is good in my experience so far)
Lonewolf10 is offline  
Old 04 April 2016, 22:47   #12
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 475
I mostly go for imploder or powerpacker, they are reliable. Never touch that squeeze again, i swear! ;-)
Cylon 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
Compression of AMOS Pro compiler's "squash" function? ant512 Coders. General 5 11 February 2014 08:04
Amos Compiler Difficulties amigapd support.Apps 7 07 April 2012 15:52
Problem with AMOS Pro compiler install amigapd support.WinUAE 2 16 December 2011 15:59
Request AMOS Compiler manual (Scans) MadAngus request.Other 4 12 December 2011 11:15
Amos compiler nnever2000 request.Apps 3 06 September 2006 19:13

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 12:54.

Top

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