flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Yet another 'code cannot be generated' problem

Author
Thread Post new topic Reply to topic
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent 05 Dec 2006, 20:36
Hi. On wasm.ru people found possible fasm's bug. Detailed description on russian language here.


Last edited by IceStudent on 06 Dec 2006, 07:35; edited 1 time in total
Post 05 Dec 2006, 20:36
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 05 Dec 2006, 20:52
From Understanding fasm:
Quote:
In case of simple dependencies between instruction forms and label addresses flat assembler tries to find the one with possibly smallest instruction encodings, but this doesn't mean it always find the smallest existing solution in general, and in some cases it may not be able to find the solution even though it exists.

The problem is not solvable in general, there always will exist some source that fasm will be not able to resolve even though the solution may exist.
The method of disabling optimization of critical instruction, that is pointed out by "diamond" is the right one.
Post 05 Dec 2006, 20:52
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.