flat assembler
Message board for the users of flat assembler.

Index > Heap > Things you hate the most about flat assembler

Author
Thread Post new topic Reply to topic
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Please post anything you hate (or dislike (or like to change)) the most about flat assembler!

_________________
Code:
 o__=-
 )
(\
 /\  
    
Post 28 Jul 2007, 04:52
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
Macros mechanism. Generally is OK, but sometimes is insufficient for purposes which I can imagine. Smile
Post 28 Jul 2007, 08:31
View user's profile Send private message Visit poster's website Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Thanks MHjduk for speaking out!
I thought no one would reply to this one because of a general favor towards
Prevalov Wink or may be out of fear that Prevalov will become angry!
Post 28 Jul 2007, 08:33
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Macro syntax is a bit arcane and macros lack EXITM... and there's no debug information available. Appearantly the last two items are worked on for "fasm2" though.

kohlrak: doesn't fasm have unicode string support? You're better off keeping unicode strings externally anyway, easier to do proper localization that way.
Post 28 Jul 2007, 12:39
View user's profile Send private message Visit poster's website Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias
0.1 wrote:
...I thought no one would reply to this one because of a general favor towards
Prevalov or may be out of fear that Prevalov will become angry!...
No, Tomasz is not easily provoked. I did manage to elicit some skepticism from him, when I explained that Copernicus simply plagiarized Aristarchus, for fear of death at the hands of the Catholics, but even then, he managed a wry smile, as if to say "what will the crazies think of next?".
To answer your question about FASM, the change I would most profit from, concerns only documentation.
Confused
Post 29 Jul 2007, 13:12
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
problems:
- lack of command line switches, thus making it very hard to use FASM for something else than directly producing executable
- portability of sources (it's both feature and problem)
- lack of inline macros (EXITM)
- debug symbols
- macro statements could be more visibly differentiated (like # in NASM), and some preprocess time if/else implemented (match is weird to use here)

As for unicode, you have to include proper file from 'include/encoding'. This way is little weird but allows you to have sources in multiple encodings (UTF8, win1250, etc...). This suits FASM's no-command-line design well.
Post 29 Jul 2007, 20:29
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
I hope something useful comes out of this discussion!
Post 30 Jul 2007, 08:33
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Unicode topic was splitted here
Post 30 Jul 2007, 09:28
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
I hate that Tomasz is so busy. I mean, who cares if he updates FASM, I just hope school doesn't rot his brain or anything. Shocked
Post 31 Jul 2007, 07:23
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
vid wrote:

> portability of sources (it's both feature and problem)

Want to translate them into C++ ??? Sad

> change I would most profit from, concerns only documentation.

YES Smile

> Please post anything you hate most about flat assembler!

Hate ? Nothing Laughing

My famous CRAP LIST is quite long .. but FASM is not in there ...

OTOH there are a few things that could be improved:

- /* junk */ make official
- format binary as "EXE" DONE Smile
- FASMD
- label list make official
- documentation (the JG vs JA issue Sad )
- buffer underrun - no more wishes Laughing

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug


Last edited by DOS386 on 12 Dec 2007, 06:26; edited 1 time in total
Post 31 Jul 2007, 08:40
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak
Quote:
- /* junk */ make official


I forgot all about that one...
Post 31 Jul 2007, 08:53
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
I think especially the preprocessor should be revised:

-"purge"ing macros doesn't deallocate the memory
-"restore"ing symbolic names doesn't deallocate the memory
-while "restore" pops the content of a symbolic name by 1, there is no easy way to completely undefine a symbolic name
-mixing macros with symbolic names is to obfuscated, e.g. you need an additional
"match all,something {}" just to access something.
-no easy way to break from a macro, e.g. let the preprocessor immediatly stop processing current macro
-the allowed patterns in the match directive are a bit to limited. Feature request:
-the pattern match should optionally start from the last character
-the matched pattern should be allowed to contain complement characters, like
match !=d!=d, something {}
matches everything that doesn't start with "dd"
-the matched pattern should be allowed to contain alternatives, repeat count...
=> this will basically settle down to something like regular expressions



-There is no way to make fasm stop assembling with custom error messages. I suggest the following for assembly time errors:
error <exit code>
where exit code is the number fasm should return on exit.
This directive should be an assembler directive and should be assembled in the last past to make things like the following work:
Code:
if something...
  display "error: something is wrong",0xA
  error 13
end if
    


Last edited by MCD on 29 Oct 2007, 13:19; edited 1 time in total
Post 29 Oct 2007, 12:32
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
cannot start a label name with a number Sad

that's all folks!!! Wink
Post 29 Oct 2007, 13:07
View user's profile Send private message Visit poster's website Reply with quote
Furby



Joined: 01 May 2007
Posts: 74
Location: Kraków, Poland
Furby
no fasm plugin form visual studio 2005 / NetBeans 6.0+

Since Its ony assembler I use , it is best thing in the world :>

And its from POLAND like me ;>
Post 03 Nov 2007, 14:47
View user's profile Send private message Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin
Furby - would this interest you with regards to visual studio 2005 ?

http://board.flatassembler.net/topic.php?t=4986
Post 03 Nov 2007, 23:41
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
there is no possibility to use a fasm function


Code:
fasm:
;;;
;;;
;input source & destination address (eax?,ebx?,...)
;process a fasm compilation
;result is at destination
;;;
;;;

call fasm
    


this use of fasm ( or an other compiler ) permits to some interresting things no?
Post 07 Nov 2007, 01:07
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
edfed: fasm can be used that way with very little hacking
Post 07 Nov 2007, 02:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Doesn't Tomasz published a library to do this?
Post 07 Nov 2007, 02:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Loco: he published a non-shareable DLL version some time ago. but you can do it at source level pretty easily
Post 07 Nov 2007, 03:33
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
ok!
Post 07 Nov 2007, 13:08
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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.