flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > FA - command line extension for fasm

Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 5388
Location: Kraków, Poland
FA - command line extension for fasm
Here's a small tool, which I made mainly for the people like vid, who'd like to have -D option in command line. It's a non-SSSO command line overlay for fasm, which provides few "unorthodox" options that fasm itself does not.

First of all, it allows to specify multiple source files in the command line, which will get assembled as one - this way you can, for instance, include some macro package before the main program you are assembling, like:

Code:
fa optimization_macros.inc my_program.asm -o my_program.exe


Note the -O switch used to specify output file. If it is not specified, the default will be used, which is "a" with a extension appropriate for the output format (like a.exe or a.obj). Such neutral name is used because of the fact, that there may not be single source file (it's similar to how ld linker generates the default output as a.out).

Other additional options are: -D for defining symbolic variables from command line, -I for defining include paths (same as defining them with INCLUDE variable), -L to make listing (FA has listing generator built-in).

And it's currently only for Windows, sorry.
You are not allowed to download the files attached to this post. You may need to log in in order to do so.


Last edited by Tomasz Grysztar on 03 Aug 2009, 10:39; edited 1 time in total
Post 19 Mar 2009, 20:57
View user's profile Send private message Visit poster's website Reply with quote
habran



Joined: 31 Aug 2008
Posts: 82
Location: South Australia
Hi Tomasz,
Thank you very much, nice tool!
So, if I understood it correctly, we don't need to call fasm.exe from the command line to compile files but fa.exe , which calls fasm.exe?

best regards
Post 19 Mar 2009, 21:32
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1021
Location: Michigan, USA
Thanks Tomasz, I can hardly keep up with all the updates! One question, does the command line version for Windows use the fasmw.ini file? Would it be hard to add this to the command line version also?
Post 21 Mar 2009, 00:59
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1789
Re: FA - command line extension for fasm

Tomasz Grysztar wrote:
Here's a small tool, which I made mainly for the people like vid, who'd like to have -D option in command line. It's a non-SSSO command line overlay for fasm, which provides few "unorthodox" options that fasm itself does not.

First of all, it allows to specify multiple source files in the command line

-O switch used to specify output file.

-D for defining symbolic variables from command line

-I for defining include paths (same as defining them with INCLUDE variable),

-L to make listing (FA has listing generator built-in).



COOL. Smile


Quote:
And it's currently only for Windows, sorry.



Would be nice to have this for DOS also. I personally don't need "-D" and "-O" (since format binary as "DLL" rocks Laughing), but "-L" is interesting Smile

madmatt wrote:

> One question, does the command line version for Windows use the fasmw.ini file?

NO. RTFS Idea
Post 22 Mar 2009, 02:21
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 1953
Location: Usono (aka, USA)
Re: FA - command line extension for fasm

Tomasz Grysztar wrote:

And it's currently only for Windows, sorry.



Will it be included in future official FASM Win32 packages?

EDIT: In particular, this subforum doesn't allow non-registered viewers to download attachments, so that's part of my concern.

EDIT #2: Laughing I would honestly prefer it named to "fas" or "fasmw32" or similar.
Post 27 Mar 2009, 14:32
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1021
Location: Michigan, USA
Re: FA - command line extension for fasm

Quote:
madmatt wrote:


Quote:
> One question, does the command line version for Windows use the fasmw.ini file?



NO. RTFS Idea



RTFS?

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 27 Mar 2009, 14:37
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 1953
Location: Usono (aka, USA)
"Read The Freakin' Source", I assume. Rolling Eyes
Post 27 Mar 2009, 14:45
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1789
Re: FA - command line extension for fasm

rugxulo wrote:
prefer it named to "fas" or "fasmw32" or similar.



Why ? Confused NO Confused

Maybe FASMEVIL would be a good name for a hack not tolerable in the "official" version Shocked
Post 27 Mar 2009, 14:47
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7110
Location: Slovakia
Please recount all the problems it caused while it was active, aside from couple of design freaks (including Tomasz Very Happy) hating it.
Post 27 Mar 2009, 14:55
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1021
Location: Michigan, USA

rugxulo wrote:
"Read The Freakin' Source", I assume. Rolling Eyes


Smile I think he means read the first post, you can define an INCLUDE variable. I'll do this and see if it does the same as the fasm.ini file.

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 27 Mar 2009, 22:28
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 184
Hello,

Notice that launching "FA" concurrently (like with GNU make) makes corruption as it uses always an intermediate file named "A.$$$". It might be better if the "A.$$$" file takes a random name each time.

Regards
Post 14 Feb 2011, 12:06
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1121
Location: Toronto, Canada
Nice tool!
Is it possible to add an option to generate the MAP file?
Like the file with addresses for all non-local labels.
Post 05 Jul 2011, 10:19
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 5388
Location: Kraków, Poland

AsmGuru62 wrote:
Nice tool!
Is it possible to add an option to generate the MAP file?
Like the file with addresses for all non-local labels.

Do you mean something like what TOOLS/WIN32/SYMBOLS generates?
Post 05 Jul 2011, 12:58
View user's profile Send private message Visit poster's website Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1121
Location: Toronto, Canada
It is perfect!

I must filter it out a little, I need to exclude stuff from FASM INC files, but that is what I was looking for.
Post 05 Jul 2011, 13:47
View user's profile Send private message Send e-mail 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 cannot download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2013, Tomasz Grysztar.