flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > FASM hangs forever... |
Author |
|
JohnFound 03 Jun 2014, 21:23
Working on some source and trying to resolve some "code cannot be generated" error, I managed to make FASM to hang instead of generate mentioned error. I leaved it to work for 15 minutes in hope it will end, but it doesn't.
(The normal compilation takes less than 3 seconds, even when the code can't be generated on 128 passes limit.) Console FASM for Linux and Fresh IDE, both compiler v1.71.21 has been tested with the same result. I believe, the problem can be reproduced in Windows as well. The OS is Linux Mint. The hangs happens on the assembling stage of the compilation. Unfortunately, the source that causes this behavior is huge and I actually have no idea where the problem can be. This way I can't reduce it to reasonably small example... In the attached file is the minimal (it is still huge) set of files I can create. The file that need to be compiled is "test_code0/TestLib.asm". The commands are executed from inside the "test_code0" directory. The lines that controls the hang/error/compilation behavior (although IMHO they are not the cause for this hang) are in the file "gui/realobjects.inc", line 143 and 146: Code: 141: match any, obj@parent \{ 142: \local ..here 143:; if ~defined used.\#any | defined ..here 144: used.\#any = 1 145: ..here = 1 146:; end if 147: \} When the lines 143 and 146 are commented, the compilation hangs. When these lines are uncommented, the compilation ends with "code cannot be generated" in one case and no error (binary file generated) in another case. Here are the command lines I use to test: 1. With lines commented (it hangs for long period and I interrupted it by ctrl+C): Code: env lib=.. TargetOS=Win32 fasm -m 65536 TestLib.asm flat assembler version 1.71.21 (65536 kilobytes memory) ^C Code: env lib=.. TargetOS=Linux fasm -m 65536 TestLib.asm flat assembler version 1.71.21 (65536 kilobytes memory) ^C 2. With lines uncommented: Code: env lib=.. TargetOS=Win32 fasm -m 65536 TestLib.asm flat assembler version 1.71.21 (65536 kilobytes memory) error: code cannot be generated. Code: env lib=.. TargetOS=Linux fasm -m 65536 TestLib.asm flat assembler version 1.71.21 (65536 kilobytes memory) I18n strings placeholders: $4E5D9 17 passes, 1.1 seconds, 23107 bytes.
_________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 Last edited by JohnFound on 04 Jun 2014, 06:05; edited 3 times in total |
|||||||||||
03 Jun 2014, 21:23 |
|
JohnFound 04 Jun 2014, 04:51
Shame on me! I simply forgot about the long loops...
l_inc, thanks for the likbez. Commenting the mentioned lines, was not an attempt to fix the "code cannot be generated" error. Just an attempt for diagnostics. |
|||
04 Jun 2014, 04:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.