flat assembler
Message board for the users of flat assembler.

Index > Main > hope command line add define option

Author
Thread Post new topic Reply to topic
fasmfan2008



Joined: 28 Oct 2007
Posts: 13
fasmfan2008 28 Oct 2007, 12:46
example:
file.asm
Code:
   format  defformat
start:
if debug=1
  ...
else
  ...
end if
    


command line:
fasm -d debug=1 -d defformat="PE console" file.asm

thanks!
Post 28 Oct 2007, 12:46
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Oct 2007, 15:15
This is unfortunate design decision of tomasz, it was talked about many times.

As long as you use FASM to produce executable directly you don't miss it.

But if you need it to create object files, this becomes very serious limitation. For example if you need to mix languages, use static library, etc.

I produced patched version, which can take command line params:
http://board.flatassembler.net/topic.php?t=7662
Post 28 Oct 2007, 15:15
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
fasmfan2008



Joined: 28 Oct 2007
Posts: 13
fasmfan2008 29 Oct 2007, 11:50
Thank you.
Post 29 Oct 2007, 11:50
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.