English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 20 November 2014, 22:06   #1
jimmy2x2x
Beyond Mutton
jimmy2x2x's Avatar
 
Join Date: Mar 2011
Location: North West, UK
Age: 46
Posts: 347
VASM fatal error..

Ive been getting along quite well with Vasm for a couple of days now,
just setup my first linking file and all is working as expected.

Then I suddenly get this when adding a little more code.

Code:
Assembling, Compiling, and Linking dh0\mydemo.exe

fatal error 8: cannot resolve section <mycode>, maximum number of passes reached

aborting...
vasmm68k_mot  -x -maxerrors=50 -m68000 -opt-brajmp -Fhunk -align -phxass "source
\main.s" -o "source\main.o" -I"%VBCC%/targets/m68k-amigaos/ndk/include_i" -I"Sou
rce" -quiet  failed: No error
Press any key to continue . . .

I remove a few lines of code and it assembles and links again, do I need to increase a buffer size or something like that. Looks like something might be overflowing.

Code:
	move.l	d1,d0
	add.l	#(80*256),d0
	move	d0,CopperScreen3+6
	swap 	d0
	move	d0,CopperScreen3+2
	; move.l	d1,d0
	; add.l	#(120*256),d0
	; move	d0,CopperScreen4+6
	; swap 	d0
	; move	d0,CopperScreen4+2
The above code is what im working on, if I leave it as you see it, everything works as expected. If I uncomment those last 5 lines the above assembly error triggers.

Thanks

Last edited by jimmy2x2x; 20 November 2014 at 22:13.
jimmy2x2x is offline  
AdSense AdSense  
Old 21 November 2014, 11:23   #2
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,019
Quote:
Originally Posted by jimmy2x2x View Post
Code:
Assembling, Compiling, and Linking dh0\mydemo.exe

fatal error 8: cannot resolve section <mycode>, maximum number of passes reached
Make sure you are running the latest vasm version (1.7a). There have been bug fixes for infinitely oscillating optimisations.


Quote:
I remove a few lines of code and it assembles and links again, do I need to increase a buffer size or something like that. Looks like something might be overflowing.
It is probably a combination of branch optimisations and alignment restrictions which force vasm's optimiser to oscillate one or more branches between byte- and word-size. So the maximum number of passes (1000) are finally reached.

I didn't see this problem in recent vasm versions, but in the past it was triggered by agressive branch optimisations. Using the -phxass option, which includes -opt-allbra, and -opt-brajmp, certainly increases the likelyhood of such a situation. Can you assemble without -phxass and -opt-brajmp? The last option should never be needed in sane sources anyway.


Quote:
The above code is what im working on, if I leave it as you see it, everything works as expected. If I uncomment those last 5 lines the above assembly error triggers.
Removing this code makes the branch-distance for the problematic branch smaller. So it stays a byte-branch in all passes and the problem disappears.

When there are still problems, even with the latest release, then try to analyse the problem with the -debug option and send me the output, or better the original source, by mail.

Last edited by phx; 21 November 2014 at 11:48. Reason: the latest official release is 1.7a, not 1.7b
phx is offline  
Old 21 November 2014, 11:27   #3
jimmy2x2x
Beyond Mutton
jimmy2x2x's Avatar
 
Join Date: Mar 2011
Location: North West, UK
Age: 46
Posts: 347
Will do, thank you for your support.

I am moving house over the weekend and will likely be without internet for a short while.

As soon as I am settled, I will follow your advice and suggestions.

Thanks again, I really love using vasm!
jimmy2x2x is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal noise doesn't boot turrican3 support.Games 8 03 August 2014 23:07
Fatal Impact frikilokooo News 4 23 June 2012 21:16
Fatal Noise viddi Games images which need to be WHDified 6 25 August 2008 00:29
Fatal Heritage fiath request.Old Rare Games 0 18 February 2003 01:02
TOSEC page fatal error andreas Amiga scene 8 16 January 2003 16:40

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 16:00.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.17888 seconds with 12 queries