flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > How to hang FASM?

Author
Thread Post new topic Reply to topic
Jin X



Joined: 06 Mar 2004
Posts: 66
Location: Russia
Jin X
Just to examples Smile

Code:
times (lbl-$+1) db 0
lbl:    

Code:
lbl1: mov ax,bx
times (lbl2-lbl1) db 0
lbl2:    

I think that FASM should show the error message when meet such expressions.
Post 06 Mar 2004, 20:22
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7521
Location: Kraków, Poland
Tomasz Grysztar
It shows the "code cannot be generated" message after reaching the limit of passes - in old fasm versions this limit was 255, and you had been getting such message quickly, but for the newer releases I have increased this limit to 65535 (to allow very large and complicated sources to be resolved), and your sample takes more time to assemble on each pass (because the number of data repetitions increases with each pass), so you have to wait really long for assembler to finish the whole sixty thousand passes - that's why it looks like hanging.
You can always change the limit yourself - just modify the line 120 of ASSEMBLE.INC file.
Post 07 Mar 2004, 20:44
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
vid
privalov: other thing that could be set with comand line parameters
Post 08 Mar 2004, 05:47
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Jin X



Joined: 06 Mar 2004
Posts: 66
Location: Russia
Jin X
O! Ty Russkii chto li? Smile))
Ty tozhe zanimaesh'sya progoi, ne tol'ko Tomasz Grysztar ?
Post 16 Mar 2004, 15:53
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
vid
ehm, didn't understand you, did it mean:
O! You Russian *******?
You 're too interested in programming, no only T.G.?

please use english or slovak Smile
Post 16 Mar 2004, 19:34
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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-2020, Tomasz Grysztar.

Powered by rwasa.