flat assembler
Message board for the users of flat assembler.

Index > Linux > constants definition through command line patch for 1.67.21

Author
Thread Post new topic Reply to topic
arafel



Joined: 29 Aug 2006
Posts: 131
Location: Jerusalem, Israel
arafel
attached file is a fasm 1.67.21 patch (for linux) which adds support for symbolic constants definition through command line. e.g. "fasm -dSYMBOL:=1234 -dSYMBOL2:=4321 test.asm"
i lacked this feature recently when working with makefiles... maybe someone will find it useful as well.
put fasm.diff in a fresh fasm directory and do $ patch -p 1 -i fasm.diff

P.S. wasn't thoroughly tested, but worked for me..


Description: constants definition through command line patch for 1.67.21
Download
Filename: fasm.diff.txt
Filesize: 2.44 KB
Downloaded: 182 Time(s)

Post 28 Feb 2007, 12:35
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
arafael: very nice, just one thing

:= ?!?!?!??
why not just =?
Post 28 Feb 2007, 13:00
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
arafel



Joined: 29 Aug 2006
Posts: 131
Location: Jerusalem, Israel
arafel
parser requires symbol`s value to be preceded by two bytes (flag and size). it was either replacing the ":=" or reconstructing the string at some other location. later seems to waste more memory. not that it matters that much considering the given proportions, but anyway.
Post 28 Feb 2007, 13:19
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
oh, that Smile
also i think you should stick to more standard /D instead of /d
Post 28 Feb 2007, 13:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
realcr



Joined: 02 Apr 2007
Posts: 39
realcr
Hey arafel.

It is a really cool option.

however I remember reading somewhere about the no command line stuff in fasm.
I really liked that principle as now people can never add strange command lines and parameters. [What you put in the source is what you get].
As useful as this option is , I rather keep the no command line principle , which is one of the things that makes fasm so special.
Just my opinion.

realcr.
Post 18 May 2007, 21:54
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
arafel



Joined: 29 Aug 2006
Posts: 131
Location: Jerusalem, Israel
arafel
Hi realcr,

For an assembler type application - minimal or no platform compatibility, massive projects are rarity, etc. Where there is almost no need in adjusting lots of compilation parameters 'no command line' approach probably has some benefits. Actually quite a few in my opinion.
For anything else though, I have strong suspicion it will add more problems than improvements Rolling Eyes
Anyways, I agree fasm should stay as it is.

_________________
lscr::winstuff
Post 19 May 2007, 13:13
View user's profile Send private message 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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.