flat assembler
Message board for the users of flat assembler.

Index > Main > fasm command line

Author
Thread Post new topic Reply to topic
NoName_s



Joined: 16 Jan 2006
Posts: 19
NoName_s
It is stupid to set evry time in "Makefile" for example:
./fasm 1.asm
./fasm 2.asm 2.o
Structure as ./fasm *.asm also not work.
Post 23 Jul 2006, 15:12
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak
I don't understand what you're saying... I attributed .asm files with FASM on windows xp and double click works fine.
Post 23 Jul 2006, 17:03
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
NoName_s



Joined: 16 Jan 2006
Posts: 19
NoName_s
I'm about linux Makefile. And about many asm files. I want compile it with one step:
./fasm *asm
or
./fasm 1.asm 2.asm ...
Post 23 Jul 2006, 18:04
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak
are you making 1 program or 2? You should only work on 1 project at a time...
Post 23 Jul 2006, 20:00
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
most time you use FASM to build complete executable, not only to compile to objects.

Also FASM style of handling sources is other than C's, you don't have thusand files, each assembled separately, you have one "main" file which includes other source files.

This approach with many files was used in C, because it is slow (well, and some name hiding....). FASM is so fast that you don't need such things. You can assmble entire source together each time, and it is still fast.
Post 24 Jul 2006, 07:22
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
And what of those of us who work on mixed language projects?

I get by with the existing model, but it would be really handy for people like me if there was a way to do a "fasm *.asm" or "fasm a.asm b.asm ..."
Post 01 Aug 2006, 00:16
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Do you mean this or something similar (I suspect not but anyways ...)?

Code:
.asm.o:
        @fasm $*
    


(makefiles never seem to have a standard way of doing things, and I'm no pro, so forgive my possible errors)

Otherwise, under Windows (or DOS), do this (call is in case fasm refers to a .BAT file):

Code:
for %a in (*.asm) do call fasm %a
    
Post 01 Aug 2006, 00:22
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
I don't use make very often, but the shell snippit gives me some ideas... I'll report back if I come up with a satisfactory solution.
Post 01 Aug 2006, 00:31
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
With tcsh it's not too bad.

Code:
#!/bin/tcsh
foreach f (*.asm)
  fasm $f
end
    
Post 01 Aug 2006, 10:54
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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.